How to select the same div after refresh

Mike.XIII

New Member
If I have 5 divs like so :\[code\]<div id="container"> <div class="selected"></div> <div></div> <div></div> <div></div> <div></div></div>\[/code\]The div that is selected can be changed by clicking another. Now if I refresh the content of the container using ajax call I would like to keep the div selected. How do I acheive this?I know I can get the selected div by using :\[code\]var selectedDiv = $('.selected');\[/code\]But how do I use this to select it again?
 
Back
Top