Difference between revisions of "MediaWiki:Common.js"

From UMaine SECS Numerical Modeling Laboratory
Jump to: navigation, search
Line 4: Line 4:
  
 
   var myElement = document.getElementById('dropdown');
 
   var myElement = document.getElementById('dropdown');
   myElement.innerHTML = '
+
   myElement.innerHTML =  
<form action="/action_page.php">
+
'
  <input list="browsers">
+
some text
  <datalist id="browsers">
+
';
    <option value="Internet Explorer">
 
    <option value="Firefox">
 
    <option value="Chrome">
 
    <option value="Opera">
 
    <option value="Safari">
 
  </datalist>
 
</form>';
 
  
 
}());
 
}());

Revision as of 20:52, 19 February 2019

/* Any JavaScript here will be loaded for all users on every page load. */

$(function () {

  var myElement = document.getElementById('dropdown');
  myElement.innerHTML = 
'
some text
';

}());