Jump to content

Having one item in a while loop diffrent from the rest


son.of.the.morning

Recommended Posts

I have a bit of Jquery that searches in a div for another div with the id "show" then it will remove that class from that div and give the next div in the z-index the same value. My problem is i have a while loop which is repeating the div with the id "show". What i need is for the while loop to display one return with a div with the id of "show" then the rest of the results to be in a div with no id. I have been messing around with this for ages now and am not getting anywere.

Link to comment
Share on other sites

It might be clearer if you post your code mate :)

 

I have a bit of Jquery that searches in a div for another div with the id "show" then it will remove that class from that div and give the next div in the z-index the same value. My problem is i have a while loop which is repeating the div with the id "show". What i need is for the while loop to display one return with a div with the id of "show" then the rest of the results to be in a div with no id. I have been messing around with this for ages now and am not getting anywere.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.