shalinjirawla

Click here to edit subtitle

Blog

Incompatibility of control events with IE

Posted by [email protected] on April 18, 2013 at 10:05 AM

I was creating a functionality of cloning <div/>, with Jquery .clone() function, which contains multiple html dropdownlist & textboxes controls. Cloning here means like appending new row of controls (Deep copy) . In the div tag I had 2 dropdownlists A & B . Now the population of B happens when I select an item from A. The problem with jquery .clone() function happens in my scenario is of deep copy i.e. it copies the content data , events along with controls. In my development I just wanted the controls & events & avoid data.Though the data doesn't cause any issue with other browsers like Firefox , Chrome as well as Ipad(Safari), still it causes a debacle with IE . The issue is that it does not clears dropdown view when we script 
$("#ddlB").empty();
whereas the same snippet acts fine with other mentioned browsers. The issue is of re-population of dropdown where IE doesn't give proper heed to dropdown selection change event. The new data is populated but the view still shows the old data, to the limits that even the firebug shows the correct data. So to clear old data in IE, we need to use : 

$("#ddlB")[0].options.length = 1;

We can use this snippet in rebinding events for all controls. For detailed scenario you can surf the below mentioned link :
                                                                        Dropdown refresh in IE

Categories: None

Post a Comment

Oops!

Oops, you forgot something.

Oops!

The words you entered did not match the given text. Please try again.

Already a member? Sign In

43 Comments

Reply JamosFup
1:30 AM on August 6, 2021 
Reply JamosFup
8:03 AM on July 10, 2021 
You mentioned that wonderfully!
http://cew-wa.com/__media__/js/netsoltrademark.php?d=bestessayscl
oud.com/thesis/522-thesis-for-promotion-high-quality.html
http://649lotto.com/__media__/js/netsoltrademark.php?d=bestessays
cloud.com/essay/53-custom-essay-excellent-writing-services.html
http://rubberducts.com/__media__/js/netsoltrademark.php?d=essaypr
omaster.com/essay/47-how-is-a-better-essay-writer.html
http://cpayour.com/__media__/js/netsoltrademark.php?d=ouressays.c
om/paper/86-write-my-math-paper-top-ranked.html
http://gat.co.in/__media__/js/netsoltrademark.php?d=topessaywriti
nglist.com/essay/23-essay-authors-wanted-best-writing.html
http://nystemexpo.org/__media__/js/netsoltrademark.php?d=topessay
ssites.com/writing/117-research-proposal-writing-service-affordab
le.html
http://alfonsotax.com/__media__/js/netsoltrademark.php?d=scoringe
ssays.com/writing/40-uc-personal-statement-write-service.html
https://thestarksgardenclub.webs.com/apps/guestbook/