开发者

how to handle two button in a single form?

<input type="submit" value=""  id="button1"/>
<input type="submit" value="" id="button2" />

I have two button in a single form. At a time only one button shows on the client side. It is done in jquery. But 'return' key works only for one button the previous one. For next button i have to use mouse. Does any one hav开发者_运维百科e any idea about that? I come up with a solution.. But how to maintain focus on button1?


Well, if only one button shows at any time, you could just use one button and change the name (and value) property instead of showing / hiding one or the other. Would that work?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜