Move js into a file for status in form
This commit is contained in:
1 parent
579bc3c245
commit
911cfdc980
3 files changed
+12
-9
No files matched your search
@@ -0,0 +1,10 @@
|
||||
$(function() {
|
||||
$(document).on('click',"*[data-toggle=buttons-checkbox] input",function(){
|
||||
var d = $(this).parent().find("input[type=hidden]");
|
||||
if($(this).is(":checked")){
|
||||
d.val("1");
|
||||
}else{
|
||||
d.val("0");
|
||||
}
|
||||
})
|
||||
});
|
||||
Reference in new issue
Block a user