return false prevents radio button click
I have a set of radio buttons. One is set to Yes. I want it to be set to know, without refreshing the page.
Here is my javascript:
$(document).ready(function(){
$('.RadioLogic').click(function(){
var $this = $(this);
var WhichRadio = $this.attr("ID");
var selKeyVal = $this.attr("value");
var url_to_load = 'server stuff';
$('#div1').load(url_to_load);
return false;
});
});
What happens here is that the load works great, but the the radio button doesn't stay clicked.
I suspect that return false, isn't the right approach.
But when I have used prevent default the form gets submitted, which is not what I want.
By the way there are two forms on this page. One form to enter information and another that lists already entered information. It is this second form that has the radio buttons I want to change.
What is the correct approach so that the form does not submit, but the change in radio button status still shows?
Thank you.