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
Devendra Kumar
NA
517
246k
javacript Created textbox values into database using C#
Apr 23 2016 3:28 AM
how to insert text box value in database when text box create by java script
<
script
type="
text
/
javascript
">
$(document).ready(function () {
$(
'#
slct
')
.change(function () {
var value = $(this).val(); var toAppend = '';
if (value == 1) {
toAppend =
"Director Name: <input type='textbox' > DIN <input type='textbox' >"
; $
("#panel1"
).html(toAppend); return;
}
if (value == 2) {
toAppend =
"Director Name: <input type='textbox' > DIN <input type='textbox' >
<br/>
Director Name: <input type='textbox' > DIN <input type='textbox' >";
$
("#panel1"
).html(toAppend); return;
}
if (value = 3) {
toAppend =
"Director Name: <input type='textbox' > DIN <input type='textbox' >
<br/>
Director Name: <input type='textbox' >
DIN <input type='textbox' > <br/>Director Name: <input type='textbox' > DIN <input type='textbox' >"; $("#panel1").html(toAppend); return;
}
});
});
</script>
<form id="form1" runat="server">
<div>
<select id="slct">
<option value="1"> 1 </option>
<option value="2"> 2 </option>
<option value="3"> 3 </option>
</select>
<asp:Panel ID="panel1" runat="server"></asp:Panel>
</div>
</form>
Reply
Answers (
1
)
select drop-down value dynamically create text box c#
how to insert dynamic text box value in database