KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
First of all, excuse me for my bad english. I've tried various methods but haven't had any luck as of yet. I'm returning a series of objects with .each()method. I'd like to populate the "value" attribute of a input field with each value from the object. I didnt find a way to do the same thing as PHP .= Any idea would be great! Here's my code : $.each($("input[type='checkbox']:checked"), function(){ var data = $(this).parent().parent().find("td:eq(1)"); $("#login").val(data.text()); })
Tags (comma-separated)
Save Edits
Cancel