Hi All !!
I am stuck with the "Object doesn't support this property or method" error. I have done all possible ways of checking the file path(jquery,css),name and also cleared the browser history after reading few articles. But no luck. I am using Mvc 4 and html 5.
Further when I created another project solution and added this to the view it worked fine. Only in my existing project this plugin is n't getting installed and throwing error "Object doesn't support this property or method".
Here is my problem :
1) I downloaded the jquery plugin for multiple select.
2) It has 3 main files :
- Jquery file - jquery.multiple.select.js-Placed in In Solution root folder
- CSS file - Placed in (In Solution root/)Content fold er
- Image - Placed in (In Solution root/) Images folder
Following is my code :
In Master Page :
<script type="text/javascript" src="~/Scripts/jquery-1.7.1.js"></script>
<script src="~/jquery.multiple.select.js"></script>
<script type="text/javascript" src="~/Scripts/jquery-latest.js"></script>
In the Main Page :
<script type="text/javascript">
$(document).ready(function () {
$('select').multipleSelect();
});
</script>
@using (Html.BeginForm("Index", "Home", FormMethod.Get, FormMethod.Post, new { @id = "Formparent", @name = "parentform" }))
{
<body>
<table>
<tr>
<td>
<select multiple="multiple">
<option value="1">January</option>
<option value="12">December</option>
</select>
</td>
</tr>
</table>
</body>
}