I’m using Entity Framework and MVC3,
I have following Jscript which I used in the View.
This script runs perfectly in the Crome browser but dont run in
firefox browser(v 15.0.1)…
What to do ?
<script type="text/javascript">
$(document).ready(function () {
$('.RemarkBox').hide();
$('a.addremark').click(function () {
var url="@Html.Raw(Url.Action("ShowCommentBox", "Comment", new { Id = "idValue", EntityType = "Location" }))";
url=url.replace("idValue",event.target.id);
$('.RemarkBox').load(url);
$(this).closest('div').find('div.RemarkBox').slideToggle();
return false;
});
});
</script>
Put the event parameter in the arguments, i.e.: