JQuery Coding Question?
Posted
by SLAPme
on Stack Overflow
See other posts from Stack Overflow
or by SLAPme
Published on 2010-03-23T05:00:10Z
Indexed on
2010/03/23
5:01 UTC
Read the original article
Hit count: 357
I'm kind of new to JQuery i really don't know how to code in the .hide()
so that it hides the following code from begin displayed until clicked <li>Changes saved!</li>
and then have it fade in using the .fadeIn
. Can some one show me how to code in the .hide()
and .fadeIn
correctly into my JQuery code?
Here is the JQuery code.
$(function() {
$(".save-button").click(function() {
$.post($("#contact-form").attr("action"), $("#contact-form").serialize(), function(html) {
$("div.contact-info-form").html(html);
$('#changes-saved').append('<li>Changes saved!</li>');
});
return false; // prevent normal submit
});
});
© Stack Overflow or respective owner