jQuery Tutorial


jQuery Example


jQuery References


jQuery HTML hasClass() Method Reference


  All jQuery with HTML Method References


Uses

jQuery hasClass() method Checks for selected element is specify by Class.


Syntax

$(selector).hasClass()

jQuery hasClass() Method Example

<script type="text/javascript"> 
$(document).ready(function(){
  $("button").click(function(){
    alert($("p").hasClass("param"));
  });
});
</script>
Online Try This Code Your Self....   »

  All jQuery with HTML Method References