*@ JAVASCRIPT
$(document).ready(function()
{
}
)
function videochange(url) {
alert(url)
}
On the click of this button it wont hit the JavaScript function above. Any idea why? I really need to get that video.Value to a JavaScript function.....
@foreach(var video in Model.VideoList)
{
var url = video.Value;
<input type="button" value="@video.Text" onclick="javascript:videochange(url);" />
<br />
}