Created
December 17, 2013 11:36
-
-
Save mramsden/8003607 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(function() { | |
$(".sort_ajax").on("blur", function() { | |
var $this = $(this); | |
if ($this.attr("checked")) { | |
var data = {}; | |
data.value = $this.siblings("[name='Style_code']").value(); | |
$.post("Product_Range", data, function(data) { | |
$("#crud_page").trigger("change"); | |
}, html); | |
} | |
}); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<input type="hidden" name="Style_code" value="<?php echo $row->Style_code; ?>"> | |
<input type="checkbox" class="sort_ajax" <?php echo ($value === "1" ? "checked" : "") ?>> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment