Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
1
Reply
javacript Created textbox values into database using C#
Devendra Kumar
Apr 23 2016 3:28 AM
360
Reply
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>
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
select drop-down value dynamically create text box c#
how to insert dynamic text box value in database