I have a webpage that i am converting to razor view engine. I have this code, which is failing now:
if ($("input[@name='exerciseRB']:checked").val() == 'New') {
$("#newExercise").show();
$("#existingExercise").hide();
}
else {
$("#newExercise").hide();
$("#existingExercise").show();
}
where it seems that it thinks the @ (in @name) is part of my mvc razor (as opposed to simply getting jquery selector. The error is "Can't resolve symbol name"
Is there anything suggestion here to allow jquery and razor to work nicely together?