开发者

HTML Input Tag onSubmit

开发者 https://www.devze.com 2023-01-30 15:20 出处:网络
I have a function which is fired in Input tag on \"onClick\". The function in turn generates a Ext.Msg.show prompt.

I have a function which is fired in Input tag on "onClick". The function in turn generates a Ext.Msg.show prompt.

The function that is called in "onClick" doesnot return anything but the Ext.Msg.show (YES/NO) returns true or false开发者_开发问答 based the button YES/NO. The event does not wait for the input from EXT, but just displays it and then moves on.

The question is, Is there a way to make the event wait for the input from Ext.Msg.Show rather just display and move on.

Thanks, J


You need to always return false, then submit the form manually when the user clicks Yes.

0

精彩评论

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