Toggling action attribute hides the button

Toggling action attribute hides the button

I have this button that is toggling an action attribute


  1.     $( "#le_qd").click(function() {
  2.    
  3.         $('#le_qd').toggle(function () {
  4.                 $('#Aktion').attr('action', '<?php echo base_url('index.php/enterprise/send_in_advanced_mode'); ?>');
  5.                 },
  6.                    function () {
  7.     $('#Aktion').attr('action', '<?php echo base_url('index.php/enterprise/send_in_easy_mode'); ?>');
  8.                    });             
  9.       
  10.     });

this works but hides the button `#le_qd`

How can i fix this not to hide the button i am clicking to toggle?.