i have 3 radio buttons. I want to refresh my page on every click of 1st radio button (ie sel_address).Whenever the user clicks on selected address the page should refresh.I don't want the page to refresh on click of other 2 radio buttons.How can i achieve this ?
<label class="option sel_address">
<input type="radio" value="sel_address" name="delivery_option" checked="checked" id="sel_address">
</label>
<strong>selected address</strong>
<label class="option your_school">
<input type="radio" value="your_school" name="delivery_option" id="your_school">
</label>
<strong>school</strong>
<label class="option rhs_showroom">
<input type="radio" value="showroom" name="delivery_option" id="showroom">
</label>
<strong>Showroom</strong>
<script type="text/javascript">
$("input[name='delivery_option']").click(function() {
.
.
var delivery_value = $(this).val();
if(delivery_value == "your_school" || delivery_value == "showroom"){
//some code
}else{
..
}
}