javascript - Selecting the individuals from a group of jQuery elements -


if use jquery select text inputs:

var inputs = $('#form input[type="text"]'); 

they wrapped in jquery. can whatever want them.

inputs.css('height', '1000px'); //muhahaha! 

as group abide. seem missing something. know can see each 1 individually if array of objects.

console.log(inputs[0]); // <input type="text" /> 

but above output html; when it's no longer jquery object :(

inputs[0].css('font-size', '100px'); // uncaught typeerror: object #<htmlinputelement> has no method 'css' 

how continue use jquery's methods on individual without having wrap each element again, or not possible strange, dark, inexplicable reason?

didn't know begin searching one, , jquery journey has not lead me answer far. thanks!

have @ page: jquery filtering

inputs.eq(0).css('font-size', '100px'); 

should trick in case


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -