kgp43
asked on
How to add div.slideUp to my current Ajax/jQuery?
Hi,
I got this jQuery/Ajax:
How can I add this to it:
I have tried this, but it does not work:
I got this jQuery/Ajax:
<script>
$(document).ready(function() {
$('#mount_tube_button').click(function(){
$.ajax({
url: 'conf_overview_handler.php',
type: 'post',
data: {'<?php echo $input_name; ?>':$('input[name=<?php echo $input_name; ?>]:checked').val()},
success: function(msg){
$('#mount_<?php echo $location; ?>_AJAX').html(msg);
}
}); // Ajax call
}); //event handler
}); //document.ready
</script>
How can I add this to it:
$( "#toggle_rod" ).slideUp( "slow" );
I have tried this, but it does not work:
<script>
$(document).ready(function() {
$('#mount_tube_button').click(function(){
$.ajax({
url: 'conf_overview_handler.php',
type: 'post',
data: {'<?php echo $input_name; ?>':$('input[name=<?php echo $input_name; ?>]:checked').val()},
success: function(msg){
$('#mount_<?php echo $location; ?>_AJAX').html(msg);
$( "#toggle_rod" ).slideUp( "slow" );
}
}); // Ajax call
}); //event handler
}); //document.ready
</script>
Should the slide only happen on the ajax success or should it slide on click?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.