File tree 1 file changed +18
-0
lines changed
1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -521,6 +521,24 @@ <h4>Address and Phone</h4>
521
521
522
522
<!-- Java Script
523
523
================================================== -->
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
+
524
542
< script src ="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js "> </ script >
525
543
< script > window . jQuery || document . write ( '<script src="js/jquery-1.10.2.min.js"><\/script>' ) </ script >
526
544
< script type ="text/javascript " src ="js/jquery-migrate-1.2.1.min.js "> </ script >
You can’t perform that action at this time.
0 commit comments