So i want to hide all elements and use
$('[id^=option_]').hide();
And that works fine, however it is hiding things i dont want it to hide. I have dynamically generated ids such as
option_1 option_1_form option_2 option_2_form
So as you can see it will also hide the forms. So i was wondering if there was a way to either filter _form out or use a regular expression of some sort for the selector
('[id^=option_][id$=/[^0-9 ]+/]')
Not that the example would work, but an example of what i mean! This would force the _form to be excluded since it would have to end in a numeric value. If you know of a better way, i am all for it too. I am no jQuery wiz.