When I hit on the <enter> key, it wont submit the form unless I use the mouse to click on the button. I tried with both method, it doesnt work. Unless I put both codes together, and it will work..
any idea?


Method 1
<input type="text" name="fullName" value="Enter Name Here" onFocus="javascript:clickme();"/>
<input type="button" class="btn2" value="<bean:message key="common.button.search"/>" onclick="javascript:doSubmitForm('showList')"/>


Method 2
<html:text property="fullName" value="Enter Name Here" onFocus="javascript:clickme();"/>
<html:button property="action" onclick="javascript:doSubmitForm('showList1')">
<bean:message key="common.button.search"/>
</html:button>



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to