Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
0
Answer
how to add control value to List using jquerry
Ashutosh Chaturvedi
11y
879
1
Reply
Hi,
I am using ASP.NET MVC3 using C#.
I want to add a value to Hashset using Jquerry..
here is my code..
Model:
public Hashset<string> selection= new Hashset<string>()
View:
@model.HiddenFor(m=>m.selection)
<
script
type
="text/javascript">
function
Checkbox() {
$(
'#checkboxes input:checked'
).each(
function
() {
switch
($(
this
).attr(
"id"
)) {
case
"input_check_bundle_mobility"
:
$(
"#IsMoblitySelected"
).val(
'true'
);
$('#selection').val('mobility added');
break
;
case
"input_check_bundle_internet"
:
$(
"#IsInternetSelected"
).val(
'true'
);
break
;
</script>
Post
Reset
Cancel
Answers (
0
)
Next Recommended Forum
How to handle two request at a time
upload video file hide the menus