jquery-2.0

jQuery live() works with jQuery 1.8.3 & below but not with 1.9.1 or 2.0

笑着哭i 提交于 2019-12-25 11:52:46
问题 I've been using http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js for a while now and everything has been fine, but 1.8.3 got quite old so I've decided to move to the latest jQuery. And suddenly a few things stopped working: Quicksand plugin and part of my own jQuery code (that shows additional data under every slide of a slider). Can you help me figuring out what's wrong? Or maybe it's not worth moving to jQuery versions above 1.8.3? Check the Jsfiddle. HTML: <a href="#" class=

Selecting a nested element by id or class with jquery

女生的网名这么多〃 提交于 2019-12-12 04:23:14
问题 I'm a bit confused how jquery searches through the DOM. Does it select from the root node, similar to XPath / selector, or from the current no matter where they are, similar to XPath // selector? I have the following setup: <body> <div id="contentSection"> //A bunch of nested DIVs follow <div id="parentDIV"> <span>Selector1</span> <select class="selector" id="first"> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> </select> <span>Selector2</span> <select

Detecting browsers that are not supported by jQuery (2)

不问归期 提交于 2019-12-03 11:33:07
问题 Forgive me if there is an obvious answer to this question, but I haven't been able to find it. I am considering switching over to jQuery 2 and, although I'm not concerned about supporting older browsers, I would like to be able to tell users with unsupported browsers that they can't use the site. I see here (http://blog.jquery.com/2013/03/01/jquery-2-0-beta-2-released/) that you can use conditional comments to branch .js files on different versions of IE, but I believe jQuery 2.0 drops

Detecting browsers that are not supported by jQuery (2)

最后都变了- 提交于 2019-12-03 01:53:30
Forgive me if there is an obvious answer to this question, but I haven't been able to find it. I am considering switching over to jQuery 2 and, although I'm not concerned about supporting older browsers, I would like to be able to tell users with unsupported browsers that they can't use the site. I see here ( http://blog.jquery.com/2013/03/01/jquery-2-0-beta-2-released/ ) that you can use conditional comments to branch .js files on different versions of IE, but I believe jQuery 2.0 drops support for a number of other browsers too, not just IE, so I don't think that would do it alone [ edit:

Jquery 2.1.1 in IE9 get error: 0x800a01b6 - Microsoft JScript runtime error: Object doesn't support property or method 'addEventListener'

依然范特西╮ 提交于 2019-12-01 15:29:41
问题 Using Visual Studio 2013, I migrated a hybrid Asp.Net Webforms/MVC 3 web application to Asp.Net Webforms/MVC 5.1. As part of the migration I upgraded Jquery from 1.9.1 to 2.1.1, using the NuGet package manager. When I run the application in the Visual Studio 2013 debugger in Chrome I have no problem. When I run the application in the Visual Studio 2013 debugger in IE 9 (compatibilty mode is not on) a master page with these two script tags loads first: <script src="/Scripts/jquery-2.1.1.js"