Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Javascript Function to Validate fields separated by fieldsets

Posted on 2011-09-23
1
Medium Priority
?
158 Views
Last Modified: 2012-05-12
I have a form with the required information needed separated into 7 fieldsets.  I'd like to spruce it up and have an acknowledgement show when the user has successfully filled out each field in the fieldset.  

I found an application called liveValidate online but I'm not sure that's my solution.

I'd really just like a green checkmark to show at the bottom corner of the box when the user has successfully filled out each field.  They will all only be integer values so checking for integer would be helpful as well.

appreciate being pointed in the right direction.
0
Comment
Question by:axessJosh
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 75

Accepted Solution

by:
Michel Plungjan earned 1000 total points
ID: 36593579
Add a span float right containing a checkmark
Hide it at the start of the validation and show it at the end

Validate using

re = /^\d+$/
document.getElementById("checkmark1").style.display= re.test(stringToTestForInteger)?"":"none"


Without the code you already have I cannot give a clearer answer
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: DanRollins
This article describes a JavaScript program that creates a maze made of hexagonal cells.  In Part 2 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7850-Hex-Maze-Part-2.html), we'll extend the program by adding a depth-…
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

704 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question