Thursday, 25 October 2012

Can we select a element having a specific class in jQuery ?

Yes, we can select an element with a specific class, we use the class selector.The class name must contain the prefix as "." (dot).
<script language="javascript" type="text/javascript">
$(".class1").css("border", "2px solid red");
</script>

No comments: