I insert a text box into my page with jQuery .html("<input type="text>")
Once I click a button, I loop through ($("input[type=text]).each)
and then need to get the value of each text box.
When I try to get that val()
of that text box it returns empty string, although I have typed something in there
console.log($(v).val()) = "empty string"
EDIT
$("input[type=text]").each(function(k, v) {
console.log($(v).val());
});