单击后退按钮将jQuery mobile中的页面返回到搜索列表页面时出现此错误。请注意,#job-results之后的所有内容?是基于前一页上的表单选择动态构建的。
Uncaught Error: Syntax error, unrecognized expression: #job-results?WorkTypes=Fixed%20Term&Locations=Brisbane
这是搜索结果块的代码
<!-- Results Page -->
<div id="job-results" data-role="page">
<div class="lcpl-header" data-id="header" data-role="header" data-position="fixed">
<a href="#" data-iconpos="notext" data-rel="back" data-icon="search">Search</a>
<h1>Job search</h1>
<a href="<?php echo get_site_url(); ?>/?home" data-iconpos="notext" data-icon="home">Home</a>
</div>
<div id="job-search-results" data-role="content">
<h2 id="job-search-results-title"></h2>
<div id="job-search-results-wrap" class="listings">
<div class="loading"><div class="loading-icon"></div>Loading results</div>
</div>
</div>
<?php include 'footer-bar.php'; ?>
</div><!-- /page -->
jQuery 1.8.3 jQuery Mobile JS 1.2.1 jQuery Mobile CSS 1.2.1