Jump to content

[SOLVED] Checking for Elements, stop when satisfied.


iPixel

Recommended Posts

Ok so i've got these <tr>'s with ID's such as

xDates_0000_1

xDates_0000_2

xDates_0000_3

xDates_0000_4

xDates_0000_5

 

You get the idea, the example ended at _5 but i could have much more or much less, that part i dont really know.

 

is there a way in JS to loop and check for ID's and once an ID is not found stop?

Or in other words look for ID's till you cant find one. So the loop will go..

 

looking for ID xDates_0000_1  --- YAY found it ---- Do this and that

looking for ID xDates_0000_2  --- YAY found it ---- Do this and that

looking for ID xDates_0000_3  --- Hmm cant find it ---- Ok exit and go on...

 

Thanks

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.