I am in the process of re-writing an old Ihtml website in ASPRunner. the Inspection Order form contains a select dropdown that has "Grouped" insurance inspection types. each group has a "Header" that is not selectable from the list. wondering how i can accomplish this in asprunner?
the select code looks like this
<option value=""><B>PACKAGE REPORTS</B></option>
<option value="01 Pkg Fire & Liability - Mercantile, Office, Mfg" label="">Fire & Liability - Mercantile, Office, Mfg</option>
<option value="02 Pkg Fire & Liability - Habitational" label="">Fire & Liability - Habitational</option>
<option value="03 Pkg Fire & Liability - Restaurant" label="">Fire & Liability - Restaurant</option>
<option value="04 Pkg Fire & Liability - Contractors" label="">Fire & Liability - Contractors</option>
<option value="05 Pkg Fire & Liability - Garage Liab. Dealers" label="">Fire & Liability - Garage Liab. Dealers</option>
<option value="06 Pkg Fire & Liability - Garage Liab. Non-Dealers" label="">Fire & Liability - Garage Liab. Non-Dealers</option>
<option value="">PROPERTY</option>
<option value="10 Fire - Only" label="">Fire - Only</option>
<option value="10A Fire - All Risk" label="">Fire & All Risk</option>
<option value="11 Builders Risk" label=""> Risk</option>
<option value="12 Inland Marine (Specify Type)" label="">Inland Marine (Specify Type)</option>
here's the original javascript
function zeroFirstCheck(obj) {
if (obj.value=='0' || obj.value=='') {
errMsg = '[BCCTurnkey Form Validation]\n\n This field is required, please select from items under the heading not the heading \n\n';
alert(errMsg);
document.InspectRqst.selAct1.focus();
return false;
} else {
return true;
}
}