SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    SitePoint Enthusiast
    Join Date
    Aug 2009
    Posts
    97
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Want to change out alert box for modal

    Hi

    I have a js script that validates the input on a form.

    <form name="Form1" onsubmit="return Validate_AddUser();" action="#" method="post">

    This script checks to see if the fields were completed. for example:
    alert ("User Number is a required field.");

    I would like to swap the alert box out for a modal box, but not sure how I would do this.

    Any help would be appreciated.

    Thanks.

  2. #2
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,526
    Mentioned
    83 Post(s)
    Tagged
    3 Thread(s)
    Quote Originally Posted by kath View Post
    I would like to swap the alert box out for a modal box, but not sure how I would do this.
    Here is how to obtain instructions on creating javascript modal dialog boxes.
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •