how to add control value to List using jquerry

Dec 25 2013 1:34 PM
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>