
Untitled
By: a guest on
May 7th, 2012 | syntax:
None | size: 0.80 KB | hits: 15 | expires: Never
MVC3 not executing JQuery on partial updates
$(document).ready(function () {
$(".thumb").click(function () {
$("#full").attr("src", $(this).data('main'));
});
});
<a data-ajax="true" data-ajax-method="Get" data-ajax-mode="replace" data-ajax-update="#product-details-page" href="/Catalog/ProductGroupGrid?categoryId=2&selectedProductId=561"><img alt="Category" src="/images/catalog/thumb/test.jpg" /></a>
</span>
$(document).ready(function () {
$(document).on('click', '.thumb', function () {
$("#full").attr("src", $(this).data('main'));
});
});
$(function() {
$(document).on('click', '.thumb', function() { // rest is same });
});
$(function() {
$('.thumb').live('click', function() { // rest is same });
});