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
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
Post a Comment