[eluser]RaZoR LeGaCy[/eluser]
[quote author="Colin Williams" date="1220176647"]Damn I hate when MVC screws with my JavaScript! :down:
Not sure where the problem is, RaZoR LeGaCy. Try putting an alert call in the ready callback function, and see if you get anything:
Code:
$(document).ready(
function () {
alert('The document is ready.');
}
);
You can also shorten your code, for what it's worth:
Code:
$(function () {
alert('This is shorter!');
});
[/quote]
This Worked!! the alert posted.
Finally I am getting something back.
I am still not getting the onclick to work though.
I have this
Code:
< script type="text/javascript" >
$(function() {
alert('This is shorter!');
$('a.test').click(function() {
alert("Hello world!");
});
});
< /script >
< div id="testdiv" class="testdiv" >
<a href="" class="test" id="test">Link</a>
< /div >