I'm trying to use the following code to display and then fade some text: < / P>
$ ('# submit_new_player_order'). Click to edit some data (ajaxurl, data_to_seend, function () (warning ('here it is'); $ (' # html Done (function () {warning ('done'); $ ('# fade_in_text_sort') .html ('we saved your data!') .Delay (2000) .Fedaut ('fast ');})});
This works for the first time when I click the submit button and it displays the text correctly when I resubmit I click I get both warnings, but the text is never displayed again because I am using feedouts, so I thought it would display it again but it does not do it. Why any thoughts?
The first time ajax is done, you hide the element (fade), so next time (before hiding it again) :
$ ('# fade_in_text_sort') .html ('we saved your data!'). Show (0). There is an example with a button here:
"JS" data-hide = "wrong">
$ ('# submit_new_player_order') . ('Click', function (e) {$ (('We saved our data!'). Show (0) .Delay (2000) .fedaut ('sharp');});
& script; script src = "https://ajax.googleapis.com/ajax/libs/jquery/1.11.1 /jquery.min.js ">