- Add JQuerify bookmarklet to this page. (Get JQuerify here)
- $("#lnkRedAttributeStartsWith").click(showRedStartsWith);
- $("#lnkYellowAttributeStartsWith").click(showYellowStartsWith);
JQuery Predicate, attribute Starts With
$("[id ^= 'HelloGoodbyeAttributeSt']")
.removeClass("YellowAttributeStartsWith")
.addClass("RedAttributeStartsWith");
or
$("div[id^='HelloGoodbyeAttributeSt']")
.removeClass("RedAttributeStartsWith")
.addClass("YellowAttributeStartsWith");
No comments:
Post a Comment