30
Jul
Post on 15:29, July 30, 2009, by Sue Zhou
$(document).ready(function() {
	formPreSet();
});

function formPreSet() {
	/* preset form element */
	$('form [type=text], form [type=password]').addClass('input');
	$('form textarea').addClass('input');
	$('form select').addClass('select');

	$('form [type=submit], form [type=button]').addClass('button');
	$('form [type=submit], form [type=button]').hover(
		function() {
			$(this).addClass('hover');
		},
		function() {
			$(this).removeClass('hover');
		}
	);
}
Category: 分享  Tags: ,
You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>