simple but useful jquery functions

<script type=”text/javascript”>
jQuery(“.pageclass #pageid fieldset:first”).attr(“id”, “users-profile-core”); //add attribute like id in first
jQuery(“.pageclass #pageid p:last”).addClass(“bottom”); //add class in last p
jQuery(“.page-id .myclass”).addClass(“roundedgray”);
jQuery(‘p’).removeClass(‘myClass yourClass’);
jQuery(‘p’).removeClass(‘myClass noClass’).addClass(‘yourClass’);
</script>

Leave a Reply

Your email address will not be published.