Hyphens are perfectly valid in IDs:
HTML 4 spec section 6.2 says, "ID and NAME tokens must begin with a
letter ([A-Za-z]) and may be followed by any number of letters,
digits ([0-9]), hyphens ("-"), underscores ("_"), colons (":"), and
periods
(".")."
XHTML spec section C.8 says, "Note that the c
Ok I get that, its an option I can try. What Id like to know though is
why the select elements in the currently selected tab arent being
populated if the previously selected tab had an element of the same
name eg:
first tab:
Select Category
Second Tab:
Select Product
Sele
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 val
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 t
Holy moly! Thanks mate! You know, all my ids where "new_" but I
changed them to "new-" trying to figure out this error so I thought it
didnt work, changing them back now however fixed it all... weird but
Im SO grateful! Thanks again!
i'd avoid arithmetic characters or any reserved characters in your id
names. if you must add some kind of spacing character underscores
work.
it'll also struggle if you begin a class/id with an integer
e.g - .1under won't work properly but .el1under will.
On Mar 10, 11:08 am, OtakuD wrote:
>
6 matches
Mail list logo