i am making a register page on my website. i have a password and a re-enter password text fields. how would i validate those two by making sure they are the same in ajax? and how would i make that happen on the re-enters onblur or onchange?
thank you
tcollins412
0
Junior Poster
Recommended Answers
Jump to PostYou just need JavaScript to validate the text field value. Yes, using onchange would be the best. Do not use onblur because it is very difficult to control and could give you an unexpected result (unwanted running of javascript).
Jump to PostYou don't need to use Ajax. :) However, you could use Ajax if you want. By the way, you would need Ajax if you need to retrieve data from the server (such as read from database). Validate current value on the page does not require Ajax.
All 8 Replies
Taywin
312
Posting Virtuoso
tcollins412
0
Junior Poster
Taywin
312
Posting Virtuoso
tcollins412
0
Junior Poster
Taywin
312
Posting Virtuoso
tcollins412
0
Junior Poster
Taywin
312
Posting Virtuoso
kardklub
0
Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.