first commit
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
jQuery(function($) {
|
||||
$('.st_product_options_stock').change(function(e) {
|
||||
var checkbox = $(e.target);
|
||||
var container = $(this);
|
||||
|
||||
if (checkbox.is('.st_product_options_stock_checkbox'))
|
||||
{
|
||||
var input = container.find('.st_product_options_stock_value');
|
||||
|
||||
if (checkbox.prop('checked')) {
|
||||
input.removeAttr('disabled');
|
||||
} else {
|
||||
input.attr('disabled', true);
|
||||
}
|
||||
// checkbox.next().val(!this.checked | 0);
|
||||
}
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user