I am developing MVC 3 application with Razor syntax.
I am wring a Jscript in the cshtml file.... I I want to use @ in the JScript but it showing yellow backgroud.
I wan to assign the integer value to button ID how to do that ?
here is the code...
success: function (data) {
$("p.p12").append
("<div style=\"background-color:#FAFAFA\";>Recently Added... <br /><a href=\"../../Employee/Details/" + data.OwnerID + "\">" + data.OwnerName + "</a>"
+ data.cmtDateTime + " <span class=\"EmpName\"><button type=\"button\" id = \" @item.Id \"class=\"deleteComment\">Delete</button></span> <br />" + data.msg + "</div>");
document.getElementById('Comment').value = "";
$(".ParentBlock").slideDown("slow");
$(".ParentBlock").attr("DataCommentId",data.Id);
$('.ShowComments').text('Hide Comments');
}
Here is the image...
What should I do for @ symbol ?