Skip to content

Commit

Permalink
Add input names
Browse files Browse the repository at this point in the history
  • Loading branch information
luiscastro193 committed Sep 19, 2024
1 parent 08bf06a commit 1f792bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</head>
<body>
<h3>Data binding</h3>
<input type="number" min="1" value="3" >
<input name="n-inputs" type="number" min="1" value="3" >
<br><br>
<section id="inputs"></section>
</body>
Expand Down
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const message = new Observable("Binded data");

function inputElement() {
let element = htmlToElement(`<article>
<input type="text" style="max-width: 17cm; width: 100%" >
<input name="msg" type="text" style="max-width: 17cm; width: 100%" >
<br><br>
</article>`);
let input = element.querySelector('input');
Expand Down

0 comments on commit 1f792bb

Please sign in to comment.