• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Creating a pop up box in a funcion

 
todd stetter
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
am trying to add a pop up box that displays an error message when they enter the wrong format. For ex. the proper format is 3 letters followed by 3 numbers (INF334). If they enter something such as (INFD334) I want a J.S. pop up box to display and have them try again. I cant seem to figure out where I need to include this within my function I created though. Can someone please help! Here is my function:

[ February 02, 2008: Message edited by: todd stetter ]
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64958
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please be sure to use UBB code tags when posting code to the forums. Unformatted code is extermely hard to read and many people that might be able to help you will just move along. Please read this for more information.

You can go back and change your post to add code tags by clicking the .
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You probbaly want to use class.match(/[A-Z]{3}[0-9]{3}/) into a variable and add an if statement with the alert.

Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic