<script type="text/javascript">
//<![CDATA[
$("#submenu a:contains('something')").addClass("newclass");
//]]>
</script>
While that works, I don't want to add a class I want to add an ID.
But this won't work.
<script type="text/javascript">
//<![CDATA[
$("#submenu a:contains('something')").addID("newid");
//]]>
</script>
I'm new to jQuery I need help![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks