Monday, 12 August 2013

why i am getting previous id during dropdown

why i am getting previous id during dropdown

I have a block with many small blocks inside. I want to edit those small
blocks and save all at once. So when I click edit I have a popup form
which when submitted with required data will give me fresh data. Now
problem is when I edit 1st block and then move on to edit 2nd block after
submit click the dropdown still give me previous id instead of new one.
Where I am doing wrong? I just can't get it. I also tried to remove
selected attribute after each submit
$('#overlay_form').find('select.getdata option:selected').attr('selected',
'');
My code is here :
http://jsfiddle.net/samjhana/AbyLN/3/
any help or suggesstions are welcome. Thanks in advance.

No comments:

Post a Comment