Response title
This is preview!
$(document).ready(function() { $('.error,.success').hide(); $("#send").click(function (){ $('.error,.success').hide("slow"); $.ajax({ url: 'add.php?lnk='+$.URLEncode($('[name=lnk]').val())+'&name='+$.URLEncode($('[name=name]').val())+'&img='+$.URLEncode($('[name=img]').val()), success: function(newContent){ $(".success").html("New Book mark created"); $(".sampleList").append(newContent); $('.success').show("slow"); $('[name=name],[name=lnk],[name=img]').html(''); }, }); }); });
© 2013 jQuery Foundation
Sponsored by and others.