Comment box is not hiding after posting any thing.
currently using AJAX to post data. Just want to hide input area just after submitting it.
here is fully
working example
I also this code to open the comment box.
$(document).ready(function() {
$(".comment_button").click(function() {
var element = $(this);
var I = element.attr("id");
$("#slidepanel" + I).slideToggle(300);
$(this).toggleClass("active");
return false;
});
});
suggesting you check the example Here
Add the following to the
successcallback:Or, to match the fade in:
See here for updated jsFiddle. Note the success callback will not be called in jsFiddle, since the php page does not exist at
http://fiddle.jshell.net/DkAMN/1/show/insertajax.php.