ajaxButton Form submit on enter button


i am using ajaxButton to submit form and it will return json data

but if i press enter key its not working properly displayed json data directly

in browser

if anyone can help me out i am stuck here

thanks in advance :(

Done good

but make sure that Ajax Button have type submit


			 &#036;this-&gt;widget('zii.widgets.jui.CJuiButton', array('buttonType'=&gt;'submit','name'=&gt;'btnSubmit',


					'caption'=&gt;&#036;model-&gt;isNewRecord ? 'Create' : 'Save',