Interviews8 answers
How to select html tag attribute using javascript?
8 Answers
html pdf interview questin
ranjeet rawatPosted May 28, 2018, 7:16 PM EDT
html pdf interview questin
ranjeet rawatPosted May 28, 2018, 7:15 PM EDT
html pdf interview questin
ranjeet rawatPosted May 28, 2018, 7:15 PM EDT
By I'd
document. getElementById()
Mukesh KumarPosted Sep 2, 2017, 9:25 AM EDT
i think answer is "var x = document.getElementById("mySelect");"
Rupesh NPosted Nov 14, 2016, 3:57 AM EST
document.getElementByTagName('Tag')
e.g.
document.getElementByTagName('div');
Vikram AgrawalPosted Dec 8, 2014, 1:53 AM EST
if you want to select any html tag using javascript the below function is used
document.getelementsbytagname("HtmlTag");
if you want to set any attribute for any html tag using javascript the below function is used
document.getElementsByTagName("HtmlTag")[0].setAttribute("Property", "Value");
Yadagiri ReddyPosted Nov 19, 2014, 3:13 AM EST
I am not getting the question. did you mean to say "Select html tag based on attribute using Javascript"??
Jaganathan BantheswaranPosted Nov 11, 2014, 9:28 PM EST





