jQuery Tutorial


jQuery Example


jQuery References


jQuery CSS hasClass() Method Reference


  jQuery CSS method References


Uses

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


Syntax

$(selector).hasClass()

jQuery css hasClass() method Example

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

  jQuery CSS method References