how to using jquery get select element has MULTIPLE mode and reverse
Posted
by Rueta
on Stack Overflow
See other posts from Stack Overflow
or by Rueta
Published on 2010-06-10T05:11:32Z
Indexed on
2010/06/10
5:22 UTC
Read the original article
Hit count: 392
Hi everyone! I have a stack with my work today. My stack here:
I have a select html element and it has MULTIPLE mode:
<select class="test" MULTIPLE></select>
(MULTIPLE mode also type as : multiple="multiple" i inclue here)
<select class="test" multiple='multiple'></select>
now i only want select this element in many normal select element:
<select class="test" ></select>
<select class="test" ></select>
<select class="test" multiple='multiple'></select>
<select class="test"> </select>
i was using jQ like this:
$(".test[!MULTIPLE]").css('border','solid 1px red');
but all select element has border red;
How can i get only select element MULTIPLE. And get select not MULTIPLE mode?
© Stack Overflow or respective owner