Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JQuery selector logical "and"

Tags:

jquery

How can I access elements that have name X and type hidden?

like image 561
Mandoleen Avatar asked Mar 08 '11 15:03

Mandoleen


1 Answers

You should try this if you want type=hidden

$('input[name="X"][type="hidden"]')

If you want an element that is hidden via css then you should try

$('[name="X"]:hidden')
like image 51
Amir Raminfar Avatar answered Sep 28 '22 05:09

Amir Raminfar