How to set the value of a text input with MooTools
问题 I have just begun playing with MooTools, and I don't understand why the following happens: var input = new Element('input'); input.set('type','text'); input.set('value','this is the value'); console.log(input); results in: <input type="text"> , so setting the value hasn't worked. But if I do this: var input = new Element('input'); input.set('type','text'); input.set('someValue','this is the value'); console.log(input); I get the expected result of <input type="text" somevalue="this is the