So I\'m trying to pass a parameter to a javascript function using the razor \'@\' notation (in an MVC-4 View) but I\'m getting Syntax error: \"Unterminated string constant\"
If you can use JQuery .data()
Further it can be fetched using
function AssignButtonClicked(elem){ var id= $(elem).data('assigned-id'); }