User:Davidboo25/common.js: Difference between revisions

Undo revision 44238 by Davidboo25 (talk)
No edit summary
(Undo revision 44238 by Davidboo25 (talk))
Tag: Undo
 
Line 1: Line 1:
$(function ()  
$(function () {
{
var myElement = document.getElementById('calculatorTest');
var myElement = document.getElementById('calculatorTest');
 
myElement.innerHTML = '<input type=\"number\" min=\"0\" oninput=\"validity.valid||(value=\'\');\" class=\"number_input\" id=Ranged value=\"\" enabled />';
var code ='<input type="number" min="0" oninput="validity.valid||(value='');" class="number_input" id=Ranged value="" enabled />';
code = code.replace(/"/g, '\\"');
code = code.replace(/'/g, '\\'');
 
myElement.innerHTML = code
     
}());
}());
12

edits