Jump to content

jQuery help (Retrieving ID's)


Andy11548

Recommended Posts

Hello, I'm trying to retrieve multiple ID's from the same class name.

 

EXAMPLE:

 

<input type="hidden" class="test" id="1" />

<input type="hidden" class="test" id="2" />

<input type="hidden" class="test" id="3" />

<input type="hidden" class="test" id="4" />

 

However, I'm not too sure how to retrieve each one independantly.

 

When I click the button under id=1, it shows up how it should,

 

however, when I click it under any of the other ID's it doesn't work.

 

How can I solve this?

 

 

Link to comment
https://forums.phpfreaks.com/topic/253514-jquery-help-retrieving-ids/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.