The function is one button opens dialog A, second button opens dialog B
- $('#InputGoodsForm').click(function () {
- $('#dialogInputGoodsForm').dialog('open');
- $('#dialogInputGoodsForm').parent().appendTo($("form:first"));
- return false;
- });
- $('#InputGoodsForm').button();
- $('#ChooseQuotation').click(function () {
- $('#dialogChooseQuotation').dialog('open');
- $('#dialogChooseQuotation').parent().appendTo($("form:first"));
- return false;
- });
- $('#ChooseQuotation').button();
And
- $('#dialogInputGoodsForm').dialog({
- draggable: false,
- resizable: false,
- autoOpen: false,
- show: 'blind',
- hide: 'explode',
- modal: true,
- width: 400
- });
- $('#dialogChooseQuotation').dialog({
- draggable: false,
- resizable: false,
- autoOpen: false,
- show: 'blind',
- hide: 'explode',
- modal: true,
- width: 600
- });
ASP.NET Button:
- <asp:Button ID="InputGoodsForm" runat="server" Text="我要輸入資料" />
- <asp:Button ID="ChooseQuotation" runat="server" Text="我要開始選擇" />
When I first press "ChooseQuotation" is OK and re-press it similarly OK, then press "InputGoodsForm" also OK but if I press "ChooseQuotation" again the button can not be pressed, how can I fix it?
By the way, the dialog content is just ASP.NET button and textbox.