<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
	<title>jQuery Grid Plugin - jqGrid - Topic: single search submit on enter</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/single-search-submit-on-enter</link>
	<description><![CDATA[Grid plugin]]></description>
	<generator>Simple:Press Version 5.7.5.3</generator>
	<atom:link href="http://www.trirand.com/blog/?page_id=393/help/single-search-submit-on-enter/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>erreth on single search submit on enter</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/single-search-submit-on-enter#p24720</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/single-search-submit-on-enter#p24720</guid>
        	        	<description><![CDATA[</p>
<p>Hello,</p>
</p>
<p>I&#39;m &#160;trying to figure out how to have my single search form submit when the enter button is pressed. &#160;I&#39;ve found several posts regarding this, but the code doesn&#39;t work for me. &#160;I&#39;ve tweaked the code I found, as seen below. &#160;But this code doesn&#39;t work properly. &#160;It seems that when I press the enter key, the form is submitted as if there was nothing entered in the value field. &#160;If I manually press the search button with the mouse pointer, it submits fine, but the jquery .click() method doesn&#39;t submit it properly, for whatever reason. &#160;I was hoping one of you might be able to give me some pointers here. &#160;Thanks!</p>
</p>
<p>Edit: &#160;The weird thing is, if I put an alert right before the .click() event, the alert pops up and the search works properly. &#160;But without the alert, just a &#39;0&#39; is submitted...</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit9801' value='Select Code' data-codeid='sfcode9801' /></p>
<div class='sfcode' id='sfcode9801'>
<p>beforeShowSearch: function(form){</p>
<p>&#160; &#160; $(&#39;input&#39;, form).keydown(function(e) {</p>
<p>&#160; &#160; &#160; &#160; if (e.keyCode == 13) {</p>
<p>&#160; &#160; &#160; &#160; &#160; &#160; $(&#34;#fbox_cust_grid_search&#34;).click();</p>
<p>&#160; &#160; &#160; &#160; }</p>
<p>&#160; &#160; }</p>
<p>},</p>
<p>onClose: function(form){</p>
<p>&#160; &#160; $(form).unbind(&#39;keydown&#39;);</p>
<p>}</p>
</p>
</div>
]]></description>
        	        	<pubDate>Fri, 23 Sep 2011 02:37:13 +0300</pubDate>
        </item>
</channel>
</rss>