Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
    Bookmark Topic Watch Topic
  • New Topic

captcha is reloading

 
Ramkumar Subburaj
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Report post to moderator
if i select the country value choose other. my captcha is reloading what is the problem can any body give solution

my registration.jsp

java script
function fnchange()
{
if(document.frmregistration.cmbstate.value=="oth")
{
document.getElementById("txtother").style.display="block";
}
else
{
document.getElementById("txtother").style.display="none";
}
}

function fnchange1()
{
if(document.frmregistration.cmbcountry.value=="oth")
{
document.getElementById("txtcountry").style.display="block";
}
else
{
document.getElementById("txtcountry").style.display="none";
}
}

<tr>
<td align="left" valign="middle">State <span class="man_field">*</span></td>
<td align="left" valign="middle">
<select name="cmbstate" class="cmbbox" onchange="fnchange();">
<option value="0">Select</option>
<option value="ap">Andhra Pradesh</option>
<option value="ar">Arunachala Pradesh</option>
<option value="assam">Assam</option>
<option value="bi">Bihar</option>
<option value="hp">HimachalaPradesh</option>
<option value="jk">Jammu And Kashmir</option>
<option value="jar">Jharkand</option>
<option value="kar">KarNataka</option>
<option value="ker">Kerala</option>
<option value="kol">Kolkatta</option>
<option value="mp">MadhyaPradesh</option>
<option value="mah">Maharastra</option>
<option value="or">Orissa</option>
<option value="pun">Punjab</option>
<option value="raj">Rajasthan</option>
<option value="tn">TamilNadu</option>
<option value="up">UttarPradesh</option>
<option value="oth">Other</option>
</select>
</td>
</tr>

<tr id="txtother" style="display:none">
<td>  </td>
<td align="left" valign="middle">
<input type="text" name="txtstateother" value="" class="textbox2">
</td>
</tr>



<tr>
<td align="left" valign="middle">Country <span class="man_field">*</span></td>
<td align="left" valign="middle">
<select name="cmbcountry" class="cmbbox" onchange="fnchange1();">
<option value="0">Select</option>
<option value="af">Afghanistan</option>
<option value="chn">China</option>
<option value="jap">Japan</option>
<option value="in">India</option>
<option value="pak">Pakistan </option>
<option value="oth">Other</option>
</select>
</td>
</tr>
<tr id="txtcountry" style="display:none">
<td>  </td>
<td align="left" valign="middle">
<input type="text" name="txtcountryother" value="" class="textbox2">
</td>
</tr>



<tr>
<td align="left" valign="middle" >Enter these above Character <span class="man_field">*</span><br/>
</td>
<td align="left" valign="middle"><input type="text" name="txtverificationcode" class="textbox2" value="" maxlength="50" ></td>
</tr>
<tr>
<td colspan="2" align="center">
<input type="submit" name="btnSubmit" class="button2" value="Submit"> <input type="reset" name="btnReset" class="button2" value="Reset">
</td>
</tr>






tahnks in advance
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64629
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please do not post the same question more than once.
 
    Bookmark Topic Watch Topic
  • New Topic