[jQuery] Can jQuery perform a generalized getElementById(divid) function without specifying the exact div id?
Javascript has a convenient "getElementById(divid)" function that
allows you to specify, in the html, which div the javascript function
applies to. I am wondering if jQuery has a similar way of performing,
in which you can name an overall function and then call it
specifically from within the html and apply it to specific divs.
I want a function that will "show" specific divs when specific titles
are clicked on. This is very similar to an "accordian menu" setup
except that my layout doesn't allow me to have the "titles" right
above the divs that they are affecting (therefore I can't use the
".next" notation to select the div that I want because the div I want
is not located "next" to the title). I want to be able to specify, in
the html, which div is effected when each title is clicked.
I, clearly, am new to jQuery and I apologize for any blatant ignorance
I have about the language. Any help you could offer would be
appreciated.