Hi, newby here in MVC2, so please excuse my stupidity, But I really need help. I am trying to do the following :
<script src="Scripts/MicrosoftAjax.js" type="text/javascript"></script>
<script src="Scripts/MicrosoftMvcAjax.js" type="text/javascript"></script>
<script src="Scripts/jquery-1.4.1.min-vsdoc.js" type="text/javascript"></script>
<%=Html.DropDownList("ddlPostage", new SelectList(Model.PostageOptions as IEnumerable, "id", "text", Model.SelectedPostageId)) %>
<script language="javascript">
$('#ddlPostage').change(function() {
alert('okay to go');
});
</script>
But getting runtime error at the JQuery systax. "Microsoft JScript runtime error: Object expected".
As far as I am concerned my path-to-jquery is okay because form validation using
<% Html.EnableClientValidation(); %>
worked fine in one of my previous pages and the jquery file sits beside the other js files as default by VS2008.
What am I doing/what is going wrong in here? Thanks in advance.