Hi guys for my first piece of work on javascript i have to check a few html form questions which is provided. But im pretty clueless on how to do it, or even start it. First of all how would i check like a drop down menu had the right chosen value? or how would i count the correct answers ? Sorry just want some idea on how to get started with javascript.
beforetheyknew 0 Junior Poster in Training
Recommended Answers
Jump to PostIt would help to know what you are planning to do with the data you collect from the user. Can you explain?
Jump to PostSo you would need to do something like this:
function validate_form () { valid = true; if ( document.FORMNAME.Q1.value != "stockholm" ) { alert ( "Please fill in the 'Your Name' box." ); valid = false; } return valid; }
All 5 Replies
beforetheyknew 0 Junior Poster in Training
alipica 0 Newbie Poster
preetg 0 Junior Poster in Training
beforetheyknew 0 Junior Poster in Training
alipica 0 Newbie 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.