Javascript Uncaught Exception Syntax Error Unrecognized Expression #
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 jquery syntax error unrecognized expression href About Us Learn more about Stack Overflow the company Business Learn more about
Syntax Error, Unrecognized Expression: [href=#] Wordpress
hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join
Uncaught Error: Syntax Error, Unrecognized Expression: [href=#] Wordpress
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 uncaught exception: Syntax error, unrecognized
Error: Syntax Error, Unrecognized Expression: [href=#] Avada
expression: # up vote 8 down vote favorite I get this error on a .click() event in jQuery. I see it in Firebug. I use the latest version, 1.3.2 (min) The click fires an $.ajax() request for a Form in my website. I asked google about this and all he knows is "%" or "[@]" as unrecognized expressions, nothing about the "#". here is a uncaught error: syntax error, unrecognized expression: [href=#] avada bit of my code: $("form#buyForm #submitForm").live("click", function(e) { var errors = 0; var inputLastName_value = $("form#buyForm input#userLastName").val(); if (inputLastName_value == "") { errors = 1; formErrorHandling("#userLastName"); return false; } return false; }); This way I check all my inputs for errors, and then call formErrorHandling() who does some show/hide, stuff like that, nothing important. I read that it might be from a selector of mine, but they all seem to be just fine. Anybody else had the same problem? Thanks. javascript jquery ajax onclick share|improve this question asked Nov 21 '09 at 15:33 Adrian 1401314 Is there a reason you are nesting #ids in your selectors? An element id should be unique on the page, so nesting them or specifying them with form or input seems a little odd. –Doug Neiner Nov 21 '09 at 17:30 2 What I mean is, why use form#buyForm #submitForm when you can just say #submitForm etc –Doug Neiner Nov 21 '09 at 17:31 1 dcneiner, yes, id's should be and are unique. The reason I use tag name before selector, at least from what I've read, is speed. So jQuery uses the getElementByTagName and
that make connections all over uncaught error: syntax error, unrecognized expression #[object htmldivelement] the world. Join today Download & Extend Drupal Core Distributions unrecognized expression a href * not href Modules Themes Field GroupIssues "uncaught exception: Syntax error, unrecognized expression: #" after 7.x-1.4 update Needs workProject:Field http://stackoverflow.com/questions/1775786/uncaught-exception-syntax-error-unrecognized-expression 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 attachment Upgrading to 7.x-1.4 from 7.x-1.3 results in https://www.drupal.org/node/2318197 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.0 /misc/form.js?v=7.31 /misc/states.js?v=7.31 /misc/ajax.js?v=7.31 /sites/all/modules/contrib/jquery_update/js/jquery_update.js?v=0.0.1 /sites/all/modules/contrib/admin_menu/admin_menu.js /sites/all/modules/contrib/admin_menu/admin_menu_toolbar/admin_menu_toolbar.js /misc/tabledrag.js /sites/all/modules/contrib/devel/devel_krumo_path.js /misc/textare
that make connections all over the world. Join today Download & Extend Drupal Core Distributions Modules Themes Field GroupIssues JS "Error: uncaught exception: Syntax error, unrecognized https://www.drupal.org/node/1358430 expression:" Closed (fixed)Project:Field GroupVersion:7.x-1.x-devComponent:CodePriority:CriticalCategory:Bug reportAssigned:UnassignedReporter:FriedJamCreated:December 1, 2011 - 17:51Updated:October 15, 2014 - 21:26 https://www.drupal.org/node/1090176 Log in or register to update this issue Jump to:Most recent comment Most recent attachment I'm running Commerce Kickstart with a recently updated Drupal 7.9. I'm finding that the site's javascript comes to a grinding halt with "Error: uncaught exception: Syntax error, unrecognized expression:" and no further information. I'm unrecognized expression not currently running any scripts on the site other than the modules I've installed. I've been able to track it down to the field group module; When I switch off everything except field group, the error still occurs, but when I switch off field group the error stops. Other than that, I can't say what the problem is. I've included a syntax error, unrecognized screenshot of both the javascript console and a test from the testing module.Files: CommentFileSizeAuthor #28 field_group-1358430-27.patch1.74 KBoushen FAILED: [[SimpleTest]]: [MySQL] Fetch test patch: failed to retrieve [field_group-1358430-27.patch] from [drupal.org]. View #17 field_group-1358430.patch97.49 KBtobiasb FAILED: [[SimpleTest]]: [MySQL] Unable to apply patch field_group-1358430_0.patch. Unable to apply patch. See the log in the details link for more information. View test_fg.jpg1.12 MBFriedJam Screen shot 2011-12-01 at 15.22.47.png85.83 KBFriedJam 3 more files CommentFileSizeAuthor #25 field_group-1358430-25.patch1.68 KBoushen #23 field_group-1358430-23.patch1.68 KBoushen #15 field_group-1358430.patch97.49 KBtobiasb Comments Comment #1 Stalski CreditAttribution: Stalski commented December 13, 2011 at 12:24pm A patch would be very welcome! Thx in advance Log in or register to post comments Comment #2 zuuperman CreditAttribution: zuuperman commented December 23, 2011 at 9:59am Can you provide me access to your site? Log in or register to post comments Comment #3 zuuperman CreditAttribution: zuuperman commented December 23, 2011 at 10:01am As jquery.js also give warnings. I think something is wrong with your installation. Log in or register to post comments Comment #4 isagarjadhav CreditAttribution: isagarjadhav commented January 25, 2012 at 5:47am I am also facing similar issue. Not able to trac
that make connections all over the world. Join today Download & Extend Drupal Core Distributions Modules Themes Theme developerIssues uncaught exception: Syntax error, unrecognized expression: # Closed (duplicate)Project:Theme developerVersion:7.x-1.x-devComponent:CodePriority:MajorCategory:Bug reportAssigned:UnassignedReporter:CountzeroCreated:March 12, 2011 - 09:29Updated:February 29, 2012 - 21:13 Log in or register to update this issue This is a javascript error which happens when I activate the module. Drupal 7 with custom Basic theme. I guess something is missing in Basic, as the module seems to behave correctly with the default D7 admin theme, but I couldn't find what as of now. Any hint would be appreciated. Comments Comment #1 ultimike CreditAttribution: ultimike commented March 13, 2011 at 9:21pm I just tried to reproduce the error using a fresh download of the Basic theme (7.x-2.0-rc3) and could not reproduce the error. Can you provide additional info? Thanks, -mike Log in or register to post comments Comment #2 Countzero CreditAttribution: Countzero commented March 14, 2011 at 4:09pm I was misleaded : Basic is innocent. The problem is caused by a clash with Views Slideshow (http://drupal.org/project/views_slideshow) dev version. Disabling the block view I use on some pages solves the problem. The maintainer of the module seems reluctant to solve the conflicts of his module with yours (http://drupal.org/node/660524) so I won't post an issue in his queue. As far as I'm concerned, the issue is not critical to me anymore, but feel free to ask if you want further information. And thanks for your work on this module, by the way. Log in or register to post comments Comment #3 ultimike CreditAttribution: ultimike commented March 14, 2011 at 8:09pm Don't thank me, thank JeremyFrench and efulgentsia, the maintainers. I was just helping out in the issue queue. -mike Log in or register to post comments Comment #4 Countzero CreditAttribution: Countzero commented March 15, 2011 at 9:38am OK, I stand corrected. I'm leaving this issue until further notice from them. Have a nice day, you, the maintainers, and whoever will read this. Log in or register to post comments Comment #5 kenneth.venken CreditAttribution: kenneth.venken commented June 30, 2011 at 7:59pm #1198062: Check box to activate themer not appearing only on front page is a duplicate of this bug, it may contain more information for those who are interested in fixing it. Log in or register to post comments Comment #6 kenneth.venken CreditAttribution: kenneth.venken commented August 17, 2011 at 8:00pm Status: Active ยป Needs review The patch sub