Sunday, August 30, 2009

[jQuery] Dissect an ID

In jQuery how do I remove a certain part of an id...

for example i have a div id='thisisadiv_1'
I want to remove the 'thisisadiv_' part
This is so I can add/subtract 1 to switch divs.

Thanks in Advance.
Phil.

No comments: