Skip to content

Commit 92be785

Browse files
committed
Update index.html
1 parent 4b7e59b commit 92be785

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

index.html

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -521,6 +521,24 @@ <h4>Address and Phone</h4>
521521

522522
<!-- Java Script
523523
================================================== -->
524+
525+
<script type="text/javascript">
526+
jQuery(function($){
527+
$("form[name=contactForm1]").submit(function(e){
528+
e.preventDefault(); // Keep the form from submitting
529+
var form = $(this);
530+
531+
// Use the POST method to post to the same url as
532+
// the real form, passing in newNickname as the only
533+
// data content
534+
$.post( form.attr('action'), { newNickname: form.find(':text').val() }, function(data){
535+
alert(data); // Alert the return from the server
536+
}, "text" );
537+
});
538+
});
539+
</script>
540+
541+
524542
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
525543
<script>window.jQuery || document.write('<script src="js/jquery-1.10.2.min.js"><\/script>')</script>
526544
<script type="text/javascript" src="js/jquery-migrate-1.2.1.min.js"></script>

0 commit comments

Comments
 (0)