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

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -