How can I access elements that have name X and type hidden?
X
hidden
You should try this if you want type=hidden
type=hidden
$('input[name="X"][type="hidden"]')
If you want an element that is hidden via css then you should try
$('[name="X"]:hidden')