I think you have two problems here.
- You are redeclaring
someStringValue
each iteration of your loop. - You should probably put the key value inside quotes.
Perhaps you can put the values into an array:
<script type="text/javascript">
var values = [];
@foreach (var jtcontentInfo in (List<KeyValuePair<string, string>>)ViewBag.JumpToContentInfo)
{
<text>values.push('@jtcontentInfo.Key');</text>
}
</script>