ajaxButton Form submit on enter button

hello

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

<?php

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


		        	'value'=&gt;'Submit',


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


					)


					


					); 

?>