I have an input boxes
<ul>
<li>
<label><input type="text" title="1"></label>
</li>
<li>
<label><input type="text" title="2"></label></li>
</ul>
Jquery
$('.editdets').click(function(e){e.preventDefault();
var inp =$('ul>li>label>input:title').toArray()
alert(inp);
});
I want to get all title(s) from input fields and store them into array.
I can't use attr().toArray as it then says to array is not a function.