Toggling action attribute hides the button
I have this button that is toggling an action attribute
- $( "#le_qd").click(function() {
-
- $('#le_qd').toggle(function () {
- $('#Aktion').attr('action', '<?php echo base_url('index.php/enterprise/send_in_advanced_mode'); ?>');
- },
- function () {
- $('#Aktion').attr('action', '<?php echo base_url('index.php/enterprise/send_in_easy_mode'); ?>');
- });
-
- });
this works but hides the button `#le_qd`
How can i fix this not to hide the button i am clicking to toggle?.