PDA

View Full Version : reset the drop down


ksridhar69
11-06-2002, 05:52 PM
Here is a drop down, when they change the value and hit OK form is submitting perfectly. If they hit cancel user wants to reset the drop down(he wants old value)

counter = 0;
function Changethepatientidinthispage()
{


counter ++;

if (counter > 1)
{
if (confirm("Do you want to Change The patient ID"))
{

window.document.patientidchage.action = "test.asp"
window.document.patientidchage.submit();
}
}

}

<select name="patient_id_code" size="1" onblur="Changethepatientidinthispage();">

<option value = "01">01-CLAIM NUMBER</option>

<option value = "02">02-POLICY NUMBER</option>

<option value = "03">03-SSN</option>

<option value = "04">04-FILE NUMBER</option>

<option value = "05">05-CASE NUMBER</option>

<option value = "06">06-PROVIDER #</option>

<option value = "07">07-GROUP NUMBER</option>

<option value = "10">10-PLAN NUMBER</option>

<option value = "12">12-OTHER</option>

<option value = "14">14-DOB</option>
</select>