<?xml version="1.0" encoding="utf-8"?>
			
			<rss version="2.0">
			<channel>
			<title>James Allen&apos;s Coldfusion and Internet Technology Blog - JQuery</title>
			<link>http://jamesallen.name/index.cfm</link>
			<description>Adventures in Coldfusion and Internet development.</description>
			<language>en-us</language>
			<pubDate>Wed, 08 Sep 2010 17:57:26 +0100</pubDate>
			<lastBuildDate>Thu, 12 Mar 2009 15:55:00 +0100</lastBuildDate>
			<generator>BlogCFC</generator>
			<docs>http://blogs.law.harvard.edu/tech/rss</docs>
			<managingEditor>slingshotuk@googlemail.com</managingEditor>
			<webMaster>slingshotuk@googlemail.com</webMaster>
			
			
			
			
			
			<item>
				<title>JQuery selector problem - &apos;Syntax error, unrecognized expression&apos; fix</title>
				<link>http://jamesallen.name/index.cfm/2009/3/12/JQuery-selector-problem--Syntax-error-unrecognized-expression-fix</link>
				<description>
				
				&lt;p&gt;I just spent a little time wrestling with an annoying JQuery error when trying to select a form element by name.&lt;/p&gt;
&lt;p&gt;I was using the following code to simply grab the contents of a hidden field named &apos;required&apos;:&lt;/p&gt; {code}
&lt;p&gt;var req = $(&quot;input[@name=required]&quot;).val();&lt;/p&gt; {/code}
&lt;p&gt;I got this syntax from a quick google search and found it referenced on a number of web guides about JQuery.&lt;/p&gt;
&lt;p&gt;However, when I used it I got the following error in Firefox:&lt;/p&gt; {code}
&lt;p&gt;&apos;Syntax error, unrecognized expression: [@name=required]&apos; when calling method: ..... &apos;&lt;/p&gt; {/code}
&lt;p&gt;Well after some head scratching and then some more searching I found the answer. The @ syntax is no longer supported in JQuery 1.3+.&lt;/p&gt;
&lt;p&gt;So the simple fix is to just remove the @ and it&apos;ll work as expected:&lt;/p&gt; {code}
&lt;p&gt;var req = $(&quot;input[name=required]&quot;).val();&lt;/p&gt; {/code}
&lt;p&gt;Hopefully this will help someone who, like me, hit&apos;s Google when looking for a quick fix to a problem.. :)&lt;/p&gt;
				
				</description>
						
				
				<category>JQuery</category>				
				
				<pubDate>Thu, 12 Mar 2009 15:55:00 +0100</pubDate>
				<guid>http://jamesallen.name/index.cfm/2009/3/12/JQuery-selector-problem--Syntax-error-unrecognized-expression-fix</guid>
				
			</item>
			
		 	
			</channel></rss>