Difference between revisions of "MediaWiki:Common.js"

From Morloch Wiki
Jump to: navigation, search
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
$(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>
 +
';
 +
 +
}());

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>
';

}());