Results 1 to 2 of 2
Mar 29, 2011, 14:34 #1
I have some attributes that aren't really standard attributes:
<option additional="34">Deep Purple</option>
That "additional" attribute is an attribute that I use with Jquery to add an additional price to the item.
How many browsers will work with custom attributes like that? Or will I have to use a standard attribute (Note: if I use Value it overwrites the value inside of the option).
Thanks for any help, hope the question makes sense.
Mar 29, 2011, 14:42 #2
- Join Date
- Jul 2006
- Augusta, Georgia, United States
- 16 Post(s)
- 3 Thread(s)
It will function in all browsers though the HTML will never be valid. DOJO takes a similar approach… probably why I hate DOJO. That said, a class could probably be used instead.The only code I hate more than my own is everyone else's.