@Dormilich: No luck, I am keeping the code in ajax call itself and wjile keeping your code it’s not throwing any error and as well as popup is also not working.(I am creating a div in the popup window)
@Dormilich: The whole content which I am building is in popup and with jquery, is there any other way to select the elements on them and also can you tell I am assigning the div structure to a variable(in My case is store so can i call with that variable like store.store-checkin like that.
I need one more help please check the div structure below, I have number of div’s like below. If I clicked on collect here adding one class ‘selected’ if I selected another one it should be toggle. How to toggle here.
<div class="pane">
<h3>Heading comes here</h3>
<p>test</p>
<div class="store-checkin">COLLECT HERE</div>
</div>
[quote=“koder, post:11, topic:229558, full:true”]
I need one more help please check the div structure below, I have number of div’s like below. If I clicked on collect here adding one class ‘selected’ if I selected another one it should be toggle. How to toggle here.[/quote]
First remove ‘selected’ from all of them, then add it to only the one that was clicked.
The same thing I am doing, but If I selected “collect here” on first div adding “selected” class to it and if i am clicking “collect here” on another 2nd div, need to remove selected class from 1st div and add it to 2nd div, by clicking class is adding but not toggling.