Jump to content

Unusual Auto Updating Percentages in Input Boxes?


socalnate

Recommended Posts

Here's an unusual AJAX script I need some help / suggestions on.  :o

 

Go here:http://dev.egamestorm.com/submit.php

 

Notice the "Select a Genre" section with percentages:

 

I need the Select A Genre section to...

 

1) Give me a warning message if I haven't entered any percentage value into any of the input boxes

2) If in any of the boxes the value x>100%, highlight that box in red with a warning message "Can't be greater than 100%"

3) If in any of the boxes a negative value is entered a warning message appears "Can't enter negative percentages!"

4) If the TOTAL VALUE of every box is greater than 100% give a warning message "Error: Total Percentage is over 100%!"

 

How the heck do I do this?  ???

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.