Muut Archive Legend
@Muut · Joined 9 years ago · 18337 posts · 3878 topics · 137 reputation
Badges
Recent posts
-
Please help with ajax
· 9 years ago
The usual form <form name="contact-home" action="/home" method="POST" id="contact-home" class="form-home w-clearfix"> ...some fields <div class="buttons"> <button class="butt
-
Please help with ajax
· 9 years ago
Nothing happens, tried 10-15 methods. Maybe the order of rendering data on the page?
-
Please help with ajax
· 9 years ago
@bleutzinn Interesting, I didn't know that jQuery rendered a span inside a button. If it does not work, what happen if you run it with $('#button').text("Sent!"); first? I think we would need to see y
-
Please help with ajax
· 9 years ago
Does $("#button span").text("Sent!"); work? I found that in this SO answer. A nice UX would be to disable the button, perhaps with $("#button").prop("disabled",true); BTW I haven't tested the above.
-
Please help with ajax
· 9 years ago
The button is located in the form
-
Please help with ajax
· 9 years ago
no
-
Please help with ajax
· 9 years ago
The button is not inside #form-result , right?
-
Please help with ajax
· 9 years ago
Of course all id are the same, but the value is not changed.
-
Please help with ajax
· 9 years ago
you sure your button has an id of button? like : <button id="button"></button>
-
Please help with ajax
· 9 years ago
Use ajax to display the message on sending email from forms. <div id="form-result"></div> <script> $(document).ready(function(){ var form = $('#contact-home'); form.submit(f