Deepak Verma
How to select html tag attribute using javascript?
By Deepak Verma in HTML 5 on Nov 03 2014
  • Mukesh Kumar
    Sep, 2017 2

    By I'd document. getElementById()

    • 1
  • ranjeet rawat
    May, 2018 28

    html pdf interview questin

    • 0
  • ranjeet rawat
    May, 2018 28

    html pdf interview questin

    • 0
  • ranjeet rawat
    May, 2018 28

    html pdf interview questin

    • 0
  • Rupesh N
    Nov, 2016 14

    i think answer is "var x = document.getElementById("mySelect");"

    • 0
  • Vikram Agrawal
    Dec, 2014 8

    document.getElementByTagName('Tag') e.g. document.getElementByTagName('div');

    • 0
  • Yadagiri Reddy
    Nov, 2014 19

    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");

    • 0
  • Jaganathan Bantheswaran
    Nov, 2014 12

    I am not getting the question. did you mean to say "Select html tag based on attribute using Javascript"??

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS