TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
ahmed salah
NA
530
148.4k
How to add one row from two drop down to table and remove
Jul 21 2016 11:23 AM
@{
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
Reply
Answers (
3
)
Delete button no responding and not remove record
AJAX modal popup using bootstrap not working