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!
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
Post a Comment