pjsikora / select-box

Automatically exported from code.google.com/p/select-box
1 stars 0 forks source link

Incompatibile with jQuery 1.9 and 2.0 #14

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Javascript error: TypeError: $(...).live is not a function - function live() 
was deprecated and was deleted from jQuery 1.9 and 2.0

What version of the product are you using? On what operating system?
SelectBox 0.2, jQuery 1.9, FF20, Win8

Please provide any additional information below.
I changed function live(..) to on(..), source in attachment.

Original issue reported on code.google.com by rno...@rafalnowak.info on 4 May 2013 at 5:37

Attachments:

GoogleCodeExporter commented 8 years ago
One more thing which you need to do when using jquery 1.9 and newer is to edit 
line 340 to look like this:

$(target).find("option[value='" + value + "']").prop("selected", TRUE);

without that it's nor working properly.

Original comment by czyte...@gmail.com on 18 Sep 2013 at 6:34