javascript - How to select an input inside a form, which ID contains dots -
javascript - How to select an input inside a form, which ID contains dots -
let's have next form:
<form id="myform"> <input id="my.input.blabla"></input> </form>
how select input if contains dots?
something
document.getelementbyid("myform").getelementbyid("my.input.blabla");
doesn't work.
all need single phone call getelementbyid()
:
var inp = document.getelementbyid("my.input.blabla");
the values of "id" attributes must unique, there's no point in scoping lookup particular part of page.
javascript
Comments
Post a Comment