Difference between revisions of "MediaWiki:Common.js"
(14 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | |||
− | |||
$(function () { | $(function () { | ||
− | var myElement = document.getElementById(' | + | var myElement = document.getElementById('mw-coords-form'); |
− | myElement.innerHTML = '< | + | myElement.innerHTML = ' |
+ | <form name="myForm" action="/action_page.php" onsubmit="return validateForm()" method="post"> | ||
+ | Name: <input type="text" name="fname"> | ||
+ | <input type="submit" value="Submit"> | ||
+ | </form> | ||
+ | '; | ||
}()); | }()); |
Latest revision as of 22:58, 6 February 2018
$(function () { var myElement = document.getElementById('mw-coords-form'); myElement.innerHTML = ' <form name="myForm" action="/action_page.php" onsubmit="return validateForm()" method="post"> Name: <input type="text" name="fname"> <input type="submit" value="Submit"> </form> '; }());