[jQuery] Collect all IDs in a DOM & then act on specific ones
Hi all.
Forgive my simplistic question, but how would one go about applying a
jQuery plugin function to IDs that start with a specific string (say
"edit-field-*").
For example, instead of applying spin() to the field specified below,
how do I traverse the DOM and apply it to all IDs that start with
"edit-field-*")?
$(document).ready(function(){
$("#edit-field-player-strength-0-value").spin({imageBasePath:"/
files/",max:100,min:2,interval:2});
});
Thanks in advance.
Dan