I have a very simple scenario where I want to have a textbox where you can enter a number, and a button next to it which when pressed will call a javascript method and send it the integer value in the textbox as a parameter.
I am just learning MVC and have been very spoiled by WebForms so forgive me for the silly question, but why doesn't this work?
Enter Value 1-4<textarea id="param"></textarea>
<br />
<button id="btnTest" onclick="WCFJSONp(" + param.value + ")">Test Service</button>
I tried adding a @ sign in front of 'param.value' hoping Razor might see what I'm trying to do, but that didn't work either? And can anyone recommend any links to 'crash courses' in Javascript/HTML for MVC newbs spoiled by WebForms?