I want to select all items on a page that have a particular label and substitute that labels value with something different.
Below is as far as I have gotten so far
$j("optgroup[label=Available]").
When the an optgroup tag has a label of Available I would like it to be something else (i.e. Options)
How do I complete this line?
Have you tried using
attr?You can see a fiddle in action here: http://jsfiddle.net/s58Lk/
attr documentation:
http://api.jquery.com/attr/