tags:

views:

32

answers:

1

I have many INPUT tags with the following name structure: name="menu:popSearch:chk0" name="menu:popSearch:chk1" name="menu:popSearch:chk2" name="menu:popSearch:chk3"

and so on.

What jQuery will give me the INPUT 's that follow this structure.

(It's to run the sites http://BiblePro.BibleOcean.com and http://BahaiResearch.com)

+1  A: 

do you mean find all the inpust with popSearch in the name,

you can use

var list = $("input[name*='popSearch']")

that will get you an array of thise elemtns that have popSearch in the name

Pharabus
You can also use `$("input[name*='menu\\:popSearch\\:chk'])` to match more strictly names. Colon has to be escaped if you want to include it in search pattern.
MBO
What about all those INPUTS where they are checked ?
BahaiResearch.com
answers in the other quetion you asked :)
Pharabus