how to remain value of drop down list
Posted: Mon Sep 15, 2008 6:44 am
<select name="category" class="forFormFields" ">
<option value="Automobile">Automobile</option>
<option value="Blogs">Blogs</option>
<option value="Business">Business</option>
</select>
there is a sign up form , that user must enter name, family name, category (above) , if user enter a wrong value , it goes to an other page , but when back to sign up form page values are still there with using sessions , except category which i cant show the selected value, and by default is in automobile , i know there is a java script that can help me to solve this problem ... can any one help me?
<option value="Automobile">Automobile</option>
<option value="Blogs">Blogs</option>
<option value="Business">Business</option>
</select>
there is a sign up form , that user must enter name, family name, category (above) , if user enter a wrong value , it goes to an other page , but when back to sign up form page values are still there with using sessions , except category which i cant show the selected value, and by default is in automobile , i know there is a java script that can help me to solve this problem ... can any one help me?