Hello:
I have a foreach loop that I have some javascript in. It does not recognize the javascript and script, but as razor code. How do I denote that the chunk is javascript?
@foreach(var contact in Model.inquiryContacts)
{
if(selectedOption == @contact.inquiry){
alert(@contact.inquiry);
}
}
Any help would be much appreciated.
Thank you.
This is a companion discussion topic for the original entry at https://our.umbraco.com/forum/30701-how-do-i-embed-javascript-code-within-razor