jquery tools error: Uncaught Error: Syntax error, unrecognized expression: [href=/]
Date : March 29 2020, 07:55 AM
hope this fix your issue I'm assuming you have a selector that is meant to match elements with an href attribute value of /. You will need to put the / character in quotes: var elems = $("[href='/']");
var elems = $("[href=\\/]");
|
Jquery Error : Uncaught Error: Syntax error, unrecognized expression: <div>
Date : March 29 2020, 07:55 AM
hop of those help? I am calling and loading html file. It file contains 3 tags. The first one is loaded in one container. The second one in another and so the third one. Here is the code of my ajax query $.ajax(
{
url: 'files/' + href,
async: true,
success: function(XML){
console.log("It's a success");
var xml = XML;
var desc = $($(xml)[0]).html();
$("#listView .list_detail:eq(0)").html(desc);
var rule = $($(xml)[1]).html();
$("#listView .list_detail:eq(1)").html(rule);
var em = $($(xml)[2]).html();
$("#listView .list_detail:eq(2)").html(em);
$("#listView .list_detail:eq(0)").slideDown();
}
});
|
Date : March 29 2020, 07:55 AM
will be helpful for those in need This is happening because comment_@item/@kpi.Id is not a valid value for an element's ID, so jQuery is unable to parse your selector. From the HTML4 spec:
|
(jQuery.js error) uncaught Error: Syntax error, unrecognized expression: [href=#]
Date : March 29 2020, 07:55 AM
may help you . [href=#] is not a valid CSS selector. In an attribute selector (the [name=value] syntax), the value MUST be surrounded by quotes UNLESS the value is a valid CSS identifier: starts with a letter, contains only letters, numbers, hyphens and underscores (in this case, quotes are optional)
|
jQuery Bootstrap Toggle - Uncaught Error: Syntax error, unrecognized expression: # at Function.Sizzle.error
Date : March 29 2020, 07:55 AM
|