php - How add table rows dynamically and loading dynamic combobox with jQuery -


i'm building form need multiple entries optional, example dynamic combobox. have this:

image: http://twitpic.com/a4ph8x

every time user presses 'new row' button new row of form inputs dynamic combobox , other inputs should added form, how can in jquery?

i'm sorry asking maybe such basic question i'm still green jquery, php i'm sure javascript / jquery plays more appropriate role here.

thanks!

code: http://www.4shared.com/file/bcafsfc9/code.html

sure, jquery can well.

just pass function on click say: addnewrow() on click of button , append new row in html.

for example

function addnewrow() { $('.form').append('<input type="text" />'); } 

Comments

Popular posts from this blog

javascript - backbone.js Collection.add() doesn't `construct` (`initialize`) an object -

php - Get uncommon values from two or more arrays -

Adding duplicate array rows in Php -