Error Syntax Error Unrecognized Expression Type= Text/javascript Not Type
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site error syntax error unrecognized expression name= About Us Learn more about Stack Overflow the company Business Learn more about
Error Syntax Error Unrecognized Expression Nth-child
hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss
Error Syntax Error Unrecognized Expression Unsupported Pseudo Hover
Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up jScrollPane and jQuery
Error Syntax Error Unrecognized Expression Data-'times New Roman'-abide
1.8.0 up vote 14 down vote favorite After update to jQuery 1.8.0, jScrollPane gives me this error: Uncaught Error: Syntax error, unrecognized expression: [type=text/javascript],not([type]) in this line: $("script",elem).filter('[type=text/javascript],not([type])').remove(); Can anyone help? Thanks jquery jscrollpane share|improve this question asked Aug 10 '12 at 14:27 rgomesf 331515 1 are you sure that jscrollpane is compatible with the latest version of jquery –Wern Ancheta Aug 10 '12 error syntax error unrecognized expression angular at 14:30 13 It should be $("script",elem).filter('[type="text/javascript"],:not([type])').remove(); –Esailija Aug 10 '12 at 14:31 Thanks @Esailija, it is working now. –rgomesf Aug 10 '12 at 16:23 With jqueryUI 1.9pre and the change by Esailija it works ok @Kyokasuigetsu. –rgomesf Aug 10 '12 at 16:25 add a comment| 3 Answers 3 active oldest votes up vote 7 down vote not is a pseudo selector and should be preceded by a : used as :not() While filtering by attribute name-value use as selector[attr="value"] - [type="text/javascript"]. So it should be - .filter('[type="text/javascript"],:not([type])') share|improve this answer edited Feb 21 '13 at 6:29 answered Sep 2 '12 at 7:55 Robin Maben 11.3k104581 Yes, I think jScrollpane needs to do that –rgomesf Sep 3 '12 at 13:11 add a comment| up vote 5 down vote Here is a patch for jScrollPane. Works fine with jquery 1.8.x https://github.com/jarednorman/jScrollPane/commit/2ef4821afa1dd62db056e3dea737e6f84b17fb13 This is a final minified version: https://raw.github.com/jarednorman/jScrollPane/2ef4821afa1dd62db056e3dea737e6f84b17fb13/script/jquery.jscrollpane.min.js share|improve this answer answered Sep 18 '12 at 11:35 King Julien 2,456135396 add a comment| up vote 0 down vote The latest version of jScrollPane (v2.0.0beta12 - 2012-09-27) added support for jQuery 1.8: $("script", elem).filter('[type="text/javascript"],:not([type])').remove(); share|improve this answer an
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies uncaught error syntax error unrecognized expression of this site About Us Learn more about Stack Overflow the company syntax error unrecognized expression input name= Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges syntax error unrecognized expression # object htmldivelement Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: http://stackoverflow.com/questions/11903758/jscrollpane-and-jquery-1-8-0 Sign up unrecognized expression: jQuery syntax issue up vote 1 down vote favorite $("#divItemName input:[type='text']").val(itemName); i have the above jQuery line of code. It works properly in jQuery 1.7.2 but in jquery-2.1.3, it throws the error below. Error: Syntax error, unrecognized expression: #divItemName input:[type='text'] What is the correct syntax for this in jquery-2.1.3? javascript jquery share|improve this question asked Feb 26 '15 http://stackoverflow.com/questions/28737155/unrecognized-expression-jquery-syntax-issue at 8:00 StackTrace 3,9371758108 1 I've always used input[type='text'] –atmd Feb 26 '15 at 8:01 add a comment| 1 Answer 1 active oldest votes up vote 2 down vote accepted Valid CSS selector will be $("#divItemName input[type='text']").val(itemName); Colon : in front of attribute selector [type='text'] looks weird even for older jQuery version. While #divItemName input[type='text'] is perfectly valid CSS syntax, it's not jQuery specific thing. share|improve this answer answered Feb 26 '15 at 8:01 dfsq 124k13103128 Many thanks. This works. –StackTrace Feb 26 '15 at 8:03 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Post as a guest Name Email Post as a guest Name Email discard By posting your answer, you agree to the privacy policy and terms of service. Not the answer you're looking for? Browse other questions tagged javascript jquery or ask your own question. asked 1 year ago viewed 182 times active 1 year ago Related 1664Is there an “exists” function for jQuery?1602Add table row
that make connections all over the world. Join today Download & Extend Drupal Core Distributions Modules Themes Field GroupIssues "uncaught exception: Syntax error, unrecognized expression: syntax error #" after 7.x-1.4 update Needs workProject:Field GroupVersion:7.x-1.4Component:MiscellaneousPriority:CriticalCategory:Bug reportAssigned:rajeev_drupalIssue tags:#drupalconasiaReporter:chromixCreated:August 8, 2014 - 21:15Updated:September 21, 2016 - 18:22 Log in or register to update this issue Jump to:Most recent comment Most recent syntax error unrecognized attachment Upgrading to 7.x-1.4 from 7.x-1.3 results in broken Javascript on page. The console in Chrome just outputs the following message: Uncaught Syntax error, unrecognized expression: # I'm running the latest core and the latest of all my other modules. I should also note that I'm using jquery_update set to version 1.5.2. Here's a list of every other JS file included on the page in case there's a conflict somewhere. /sites/all/modules/contrib/jquery_update/replace/jquery/1.5/jquery.min.js?v=1.5.2 /misc/jquery.once.js?v=1.2 /misc/drupal.js /misc/ui/jquery.ui.core.min.js?v=1.8.7 /misc/ui/jquery.ui.widget.min.js?v=1.8.7 /misc/ui/jquery.effects.core.min.js?v=1.8.7 /misc/ui/jquery.ui.button.min.js?v=1.8.7 /misc/ui/jquery.ui.mouse.min.js?v=1.8.7 /misc/ui/jquery.ui.draggable.min.js?v=1.8.7 /misc/ui/jquery.ui.position.min.js?v=1.8.7 /misc/ui/jquery.ui.resizable.min.js?v=1.8.7 /misc/ui/jquery.ui.dialog.min.js?v=1.8.7 /sites/all/modules/contrib/views/js/jquery.ui.dialog.patch.js?v=1.8.7 /sites/all/modules/contrib/token/token.js?v=1.0 /modules/contextual/contextual.js?v=1.0 /sites/all/modules/contrib/jquery_update/replace/ui/external/jquery.cookie.js?v=67fb34f6a866c40d0570 /sites/all/modules/contrib/jquery_update/replace/misc/jquery.form.min.js?v=2.69 /misc/ui/jquery.effects.drop.min.js?v=1.8.7 /misc/vertical-tabs.js?v=1