Add a textbox in the default dialog box (pop up).
Hi,
I want to add a text box at the end of the dialog box, so I have achieved this like this
- $(".LASERAction").dialog({
- autoOpen: false,
- height: 450,
- width: 600,
- modal: true,
- buttons: {
- Ok: function () {
- //My Submit code
- }
- }
- });
- var textBoxHTML = '<div style="position:relative"><input type="text" class="form-control InteractionText" id="InteractionFinalText" /></div>'
- $(".ui-dialog-buttonpane").prepend(textBoxHTML);
When I have implemented this the text box is adding at all the places wherever I am using the dialog.
But my requirement is that I want to add this text box to only one scenario of my application, means that I have used dialog box at several places, but need to add at only one place.
Is there any option
- $(".LASERAction").dialog({
- });
in this method so that we can add our own code to the dialog wherever we needed.
Thanks.