|
|
@ -49,18 +49,18 @@ The html above can be written as: |
|
|
|
"type": "text", |
|
|
|
"type": "text", |
|
|
|
"placeholder": "Insert Name" |
|
|
|
"placeholder": "Insert Name" |
|
|
|
} |
|
|
|
} |
|
|
|
}, //</input> |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
"tag": "input", |
|
|
|
"tag": "input", |
|
|
|
"attrs": { |
|
|
|
"attrs": { |
|
|
|
"type": "submit", |
|
|
|
"type": "submit", |
|
|
|
"placeholder": "Submit" |
|
|
|
"placeholder": "Submit" |
|
|
|
} |
|
|
|
} |
|
|
|
} //</input> |
|
|
|
} |
|
|
|
] |
|
|
|
] |
|
|
|
} //</div> |
|
|
|
} |
|
|
|
] |
|
|
|
] |
|
|
|
} //</html> |
|
|
|
} |
|
|
|
``` |
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
With this in mind you can manipulate the DOM more easily in JS. And that is what you will do using a method. Here are some methods you can use: |
|
|
|
With this in mind you can manipulate the DOM more easily in JS. And that is what you will do using a method. Here are some methods you can use: |
|
|
|