jquery - can I use name tags as selectors -


i have form selects image customer customize, there should show set of options customizable particular product, e.g colours, trims etc

first choose product , want show customization options once selected.

not products can customized in same way need able remove options not applicable. can't use value because thats used change image shown choose product option

link

i have set name of each option numeric value, can this

is correct way start it?

if ($(this).name() == "1,2,3,4")  

then stuff

any on appreciated, havent done while , brain drawing blank.

you can use following

alert($(this).attr('name')); 

and check if in array list using inarray


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -