Hii,
In my application I haveto add a row to a table dynamically and after entering data into the columns of that row,onclick of save the newly added row data should be saved into databaseRight now I have added one row to my table using following javascript
$("#myButton").click(function () {
// Create elements dynamically
var newRow = ' ' ' ' ' ' ' ' ' ' ''+ ';' + ' + ' + ' + ' + ' + ' + ' + ' +
// Add the new dynamic row after the last row
$('#myTable tr:last').after(newRow);
Now my issue is,all the td columns in the above code is text box,In my application I want some tds as dropdownlists and it should allow to select data from database while clicking on it
Can we implement this?Is there any javascript for this?
Please Help
Thanks in advance
Jaima JosephPosted Jan 3, 2014, 2:57 AM
Sanjay KumarPosted Jan 3, 2014, 2:57 AM
try this
http://debugmode.net/2011/02/02/dynamically-adding-drop-down-using-jquery/
http://stackoverflow.com/questions/7253187/fill-a-drop-down-list-dynamically-using-javascript-jquery
http://stackoverflow.com/questions/9275972/creating-dropdown-dynamically-javascript
http://stackoverflow.com/questions/20857602/how-to-create-drop-down-dynamically
http://viralpatel.net/blogs/dynamic-combobox-listbox-drop-down-using-javascript/
Vignesh KumarPosted Jan 3, 2014, 2:50 AM