JQuery click / change function on radio button set

I have a set of radio buttons called pick_up_point. There are 3 options, and when you click on a parameter, a set of input fields related to the option will be displayed.

Now, by default, when the user clicks on a parameter, I run the change () function, which will run a function called clearInputFields, which, as you might guess, will clear any text entered in the input fields.

$("input[name='pick_up_point']").change(function()
{
 clearInputFields(); 
});

Now I have tried to expand this so that the user is prompted for a prompt to inform them that the input fields will be cleared:

$("input[name='pick_up_point']").click(function(event)
{
 if(confirm('Address details will be cleared. Continue?'))
 {
  return true;
 }
 else
 {
  return false;
 }
});

The 'click' function is in front of the "change" function.

This works "OK" in Firefox and does not work properly in IE.

Firefox , "" .

IE , . "" , .

, , , - , , OK . "" , .

+5
2

IE change , , . , .

jQuery change , , . IE, change , click Default.

: IE, return false click , , , !

, , , - , . :.

var currentradio= $("input[name='pick_up_point']:checked")[0];
$("input[name='pick_up_point']").change(function(event) {
    var newradio= $("input[name='pick_up_point']:checked")[0];

    if (newradio===currentradio)
        return;
    if (confirm('Address details will be cleared. Continue?')) {
        clearInputFields();
        currentradio= newradio;
    } else {
        currentradio.checked= true;
    }
});
+13

, , .change .click.

$("input[name='pick_up_point']").change(function(event) 
{ 
 if(confirm('Address details will be cleared. Continue?')) 
 { 
   clearInputFields();  
   return true; 
 } 
 else 
 { 
  return false; 
 } 
}); 

, return xx, , .

EDIT:

.change vs..click( ), :

http://jsfiddle.net/KMjan/

, ( , )

EDIT2: .click .change

http://jsfiddle.net/KMjan/1/

EDIT3: ​​ , div, (true false) - - .

http://jsfiddle.net/KMjan/3/

, , , , .
. : http://api.jquery.com/category/events/

+2