Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- onchange="$.get('set_item.php?stockID='.$row[stockID].'&push='+this.checked);"
- $(document).ready(function () {
- $('#selectChb').click(function(){
- $(':checkbox').prop("checked", true);
- });
- $(":checkbox:checked").each(function() {
- str = this.val();
- $.get('set_item.php?stockID='+str+'&push='+this.checked);
- });
- $(":checkbox:not(:checked)").each(function() {
- str = this.val();
- $.get('set_item.php?stockID='+str+'&push='+this.checked);
- });
- });
- $(document).ready(function () {
- $('#selectChb').click(function(){
- $(':checkbox').prop("checked", true);
- });
- $(":checkbox").on("change", function() {
- if($(this).is(":checked"))
- {
- str = $(this).val();
- $.get('set_item.php?stockID='+str+'&push='+this.checked);
- }
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement