<script language="JavaScript"> var DivTxt = new Array() DivTxt[1] = "Most magnets have a North Pole and a South Pole. Two of the same poles will not get on and will, therefore, repel each other. However, opposite poles will attract each other, so will form the best relationships." DivTxt[2] = "Most magnets have a North Pole and a South Pole. Two of the same poles will not get on and will, therefore, repel each other. However, opposite poles will attract each other, so will form the best relationships." function getText(slction){ txtSelected = slction.selectedIndex; document.getElementById('textDiv').innerHTML = DivTxt[txtSelected]; } </script> <label for="critical">I am looking for a </label> <Select class="body_text" name="critical" onchange="getText(this)" style="height:30px;"> <option value="Select"> Select </option> <option value="North Pole"> North Pole </option> <option value="South Pole"> South Pole </option> </select> <div id="textDiv" style="color:black; font-family:ariel; font-size:15px; font-weight:regular"> </div>
<select class="body_text" name="critical" onchange="getText(this, 'textDiv')" style="height:30px;"> <option value="Select"> Select </option> <option value="North Pole"> North Pole </option> <option value="South Pole"> South Pole </option> </select>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)