- @{
- Layout = null;
- }
-
- <!DOCTYPE html>
-
- <html>
- <head>
- <meta name="viewport" content="width=device-width" />
- <title>Index</title>
- <script src="~/Scripts/jquery-1.10.2.js"></script>
- <script>
-
- </script>
- </head>
- <body>
- <div>
- Project : <select id="myproject">
- <option value="1">one</option>
- <option value="2">two</option>
- <option value="3">three</option>
- <option value="4">four</option>
- </select><br />
- Employees : <select id="myemployee">
- <option value="1">ahmed</option>
- <option value="2">mohamed</option>
- <option value="3">saiad</option>
- <option value="4">adil</option>
- </select>
- </div>
- <table id="tb">
- <tr><td>ProjectName</td><td>EmployeeName</td></tr>
- </table>
- </body>
- </html>
How to add one row from two drop down list to table and remove when select
I have two drop dow list
first for projects
second for employees
I need when select value from first drop down list(projects) then select value from second drop down list (employee)
add new row of selected value from both two drop down list to table as following
suppose i select
one adil
value selected removed from two drop dow list both and inserted in table
my code as following
How i do that by jquery