identical IDs or classes?

an id should be unique, a class if for applying to multiple elements.
if the tabs have unique ids you can just give all the fields a class
based on type and use a selector explicitly naming the parent element

 $('div#firstTab input.emailAddress').val() would get the value of a
text input with a class of emailAddress from the div with the id
firstTab.

On Mar 10, 11:38 am, OtakuD <ota...@gmail.com> wrote:
> Hmm seems like I spoke too soon! (-.-)
>
> Well it works fine so long as the three different jQuery UI tabs do
> not have identically named inputs, or at least thats how it seems.
> Each of my tabs is used for either editing, creating or deleting a
> record from the database so identical fields are bound to happen, how
> can I stop this from occurring and let my 3 tabs act independently of
> one another?

Reply via email to