jquery - how to append input with name array to a row?
问题 I'm setting up a form that will dynamically create a text field and append it to the table. The name of the text field is an array, so it contains brackets. The code below doesn't append the input field, rather, it spits back [object HTMLInputElement]. I'm assuming it's because of the brackets? Is there a way to do this? //HTML <table id="notesplus" cellpadding="0" cellspacing="0"> <thead></thead> <tbody></tbody> </table> //JQUERY $(document).ready(function() { $('input[id=addIt]').live(