Jump to content

Advice needed for validating drop down boxes


MightyMouse58

Recommended Posts

Hi, my problem that I need advice for is this: I'm developing a web page as part of an e-learning system (see attached). What happens is that the user comes to this page and along each row makes their selection from the drop down boxes. Each row has one combination which is correct. After they've made their selections for each row, they press the 'Submit' button. If they get get the right combination in each row, what I would lke to see is a coloured 'tick' appear at the end of the row. If they're wrong they get a 'cross'. I've been trying to work this out but my scripting experience is not much. Advice/pointers/code would be much appreciated. Below is the code for the first part of the screen: <H1>Exercise 3</H1><BR><P>Using Reference Designators, Border Guides and the Reference Chart, locate and identify all contacts associated with relay 'K4' to the right.</P><P>Note your answers in the fields below.</P><IMG style="Z-INDEX: 100; POSITION: absolute; TOP: 139px; LEFT: 513px" border=0 alt="" src="../REPOSITORY/COURSE/IMAGES/{08F0448F-3B01-4058-A68C-5069B555B345}.PNG" width=191 height=770><FORM NAME=vpfrmQuestion><P><select NAME='FillinA1'><option value="" selected>Select Contact</option><option value="NO75">NO75</option><option value="NC75">NC75</option><option value="NC64">NC64</option></select><select NAME='FillinA2'><option value="" selected>Type</option><option value="NO">Normally Open (NO)</option><option value="NC">Normally Closed (NC)</option></select><select NAME='FillinA3'><option value="" selected>Sheet</option><option value="1">1</option><option value="2">2</option><option value="3">3</option><option value="4">4</option><option value="5">5</option><option value="6">6</option><option value="7">7</option><option value="8">8</option><option value="9">9</option></select><select NAME='FillinA4'><option value="" selected>Column</option><option value="0">0</option><option value="1">1</option><option value="2">2</option><option value="3">3</option><option value="4">4</option><option value="5">5</option><option value="6">6</option><option value="7">7</option><option value="8">8</option><option value="9">9</option></select><p><input name="Submit" type="submit" /> Cheers Carl

post-95129-0-58508800-1334707269_thumb.png

Link to comment
Share on other sites

well, that's the HTML. what about the JS you have tried? Also, you clarify how the dropdown are related to each through rows? I'm not sure I'm making the connection.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...