Wednesday 28 August 2013

Apply each on any class in jquery

Example:

<script>
 $(document).ready(function(){

$(".ClassName").each(function () {
                       //any thing which you want to perform
                        alert($(this).text());
                    });

});
</script>  

0 comments:

Post a Comment


                                                            
 
Design by Abhinav Ranjan Sinha