I want to set for each of input fields different z-index values. How I can do this with JQuery?
I want something like this:
jQuery.each($("input[type=text]"), function (index, item) {
item.css("z-index", index);
});
But "item" has no css property. How to correctly iterate an array ?
HTML:
<div>
<input type="text" required class="form-control" id="Text4" placeholder="Some text"
runat="server" />
<input type="text" required class="form-control" id="Text5" placeholder="Some text"
runat="server" />
<input type="text" required class="form-control" id="Text6" placeholder="Some text"
runat="server" />
</div>