html - Javascript - get element (button) without ID or Class? -
possible duplicate:
get list ofinputobjects using javascript, without accessingformobject
how can elements, buttons on page, without class or id?
is there this?
document.getelementsbytype(button) edit
my confusion how buttons (not one) without class or id.
the solution ended being
var buttons = document.getelementsbytagname('button'); (var = 0, len = buttons.length; < len; ++i) { but answer led me find out didn't know ask in first place... so, everyone!
document.getelementsbytagname('button')
Comments
Post a Comment