The plugin removes the tooltip when the form into which the input is entered is submitted, unfortunately you do not submit the form, but submit it through $.post.
The easiest way is probably to check the value (s) of the input (s) just before it is sent against its header, and clear it if they are the same:
$(".lSubmit").click(function(e){
$('.input').each(function() {
if($(this).val() == $(this).attr('title')) {
$(this).val("");
}
});
e.preventDefault();
$.post('form.php',decodeURIComponent($("#forms").serialize()) , function(data) {
$('.result').html(data);
});
});
source
share