How can I access elements that have name X and type hidden?
X
hidden
$('[name="X"]:hidden').dosomething();
This will select an element with a name="X" attribute which is hidden. You can learn lots more about jQuery selectors - there's plenty of useful help there.
name="X"