0
<form method="post" action="#">
<table>

<tr>

 <td></td>
<td><input name=cars type=radio value=a>Volkeswagon</td>
<td><input name=cars type=radio value=b>Ford</td>
<td><input name=cars type=radio value=c>Honda City</td>
<td><input name=cars type=radio value=d>Renault</td>
</tr>
<tr><td> <input type="submit" value="submit"></td></tr>
</form>

Quoted Text Here

so when i did page refreshing after the radiobutton selection.the radiobutton can display as unchecked.
can u please help me to display the radiobutton as checked even after page refreshing...thanks to all.

4
Contributors
5
Replies
9
Views
4 Years
Discussion Span
Last Post by gon1387
0

hi urtrivedi.ya wat you said was right..is it posible for disabling browser refresh button using java script.

1

You can use HTML5's localStorage/ Cookie if you want it to be retained. you can do the following steps

  1. Passively/Actively save the option value to localStorage/cookie
  2. Refresh
  3. Check which radio button was selected, then put a "checked" tag
0

Hi ritanji,
It's possible to disable the refresh button. You can filter it on the keydown event, it has a keycode of 116.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.