How to set left and top positions of alert box using JQuery in the below code?

How to set left and top positions of alert box using JQuery in the below code?

<script>
$(document).ready(function() {
    if(document.getElementById("faxNoId").value=="- -"){
        var show=document.getElementById("add");
        var hide=document.getElementById("edit");
        show.style.display = "inline";
        hide.style.display="none";
    }else{
        var customers=document.getElementById("faxNoId").value;
        var hide=document.getElementById("add");
        var show=document.getElementById("edit");
        show.style.display = "inline";
        hide.style.display="none";
    }
    document.getElementById("timer").style.display = "none";
    if(document.getElementById("faxNoId").value=="- -"){
        var cusno=$("#custNoId").val();
        $("#dialog-contactAlert").dialog({
            autoOpen: false,
            height: 300,
            width: 450,
            modal: true,
            open: function (event, ui) {
               $('#dialog-contactAlert').css('overflow', 'hidden');
               }
         });
        var dataString='<div><br>Customer Contact Details are incomplete, \n Do you want to update the details? <br><br><input type=button class=button value=Update name=theButton onclick=open_faxaddress('+cusno+') style=background-color: #888; color: #FFF;/> <input type=button value=Cancel class=button name=theButton1 onclick=open_close() style=background-color: #888; color: #FFF;/></div>';
         $('#dialog-contactAlert').html(dataString);
         $("#dialog-contactAlert").dialog("open");
    }
    });

    function open_faxaddress(cusno){
        open_faxadd(cusno);
        $("#dialog-contactAlert").dialog("close");
    }

    function open_close(){
        $("#dialog-contactAlert").dialog("close");
    }

</script>
View Answers









Related Tutorials/Questions & Answers:
How to set left and top positions of alert box using JQuery in the below code?
ModuleNotFoundError: No module named 'testwizard.android-set-top-box'
Advertisements
jQuery alert()
jQuery Hello World alert
check box left justification
change appearance of alert box
Alert Box in Flex
Drag a Text Box into dynamic positions
how to set the tables one is left and another one is right - JSP-Servlet
align top left corner - Development process
alert box in iphone
jquery dialog box center
Display alert box on clicking link
jQuery chain-able state of transition
how to use confirmation alert box before delete in jsp?
How to write a search functionality using javascript/jquery
jQuery alert()
ModuleNotFoundError: No module named 'codel'
Display two alert box alternately by clicking on text
Auto complete text box using jQuery plug in
Find Browser & it's version using jQuery
ModuleNotFoundError: No module named 'testwizard.set-top-box'
ModuleNotFoundError: No module named 'codep'
ModuleNotFoundError: No module named 'codep'
ModuleNotFoundError: No module named 'codep'
how to create a text box using awt
Hide boxes by clicking on it using jQuery
why alert box is not appearing in servlets...?
how to validate the telephone number without using jquery in html with javascript
ModuleNotFoundError: No module named 'codev'
how to operate on select box using ajax in struts2?
ModuleNotFoundError: No module named 'codex'
ModuleNotFoundError: No module named 'codex'
how to operate on select box using ajax in struts2?
Moving Div by button click using animate effect
how to print HTML using javascript or Jquery
How to set a variable value using velocity
Java Alert Box
how to prevent no from unroundin off on clicking text box again in JSP and Jquery
Flex Alert Box example
Using the jQuery event object
how to display data from mysql table in text box using jsp??
jQuery UI Interaction : Droppable
How to retrieve data by using combo box value in jsp? - JSP-Servlet
how to show set of images continously using JScrollpane in java
how to set values in object using java and what are the ways?
how to show set of images continously using JScrollpane in java
How to create runtime drag and drop form builder using asp.net mvc and jquery
Auto Search box using ajax
How can we find the number of rows in a result set using PHP?

Ads