javascript - Getting all <input> inside the document -
how can display in console list of <input>
tags inside html?
i've tried use $('input')
, $(':input')
, or $('tbody input')
of commands returns jquery.fn.jquery.init[<number>]
.
anyways, using google chrome. yet think wouldn't affect other browsers, of course ie exemption.
$('input')
correct approach. $(...)
returns jquery object , jquery.fn.jquery.init[<number>]
console's representation of such object.
it means have array object, constructed function jquery.fn.jquery.init
, <number>
elements.
that's normal, code works fine (at least in regard), $('input')
correct approach.
of course should make select elements after document loaded, explained jquery tutorial.
Comments
Post a Comment