Answers for "mark checkbox as checked after selecting from database"

0

mark checkbox as checked after selecting from database

$.each(myArray, function(index, item){
    $('.category').each(function(){
        if(this.value === item) {
            this.checked = true;
        }
    });
});
Posted by: Guest on July-29-2021

Code answers related to "mark checkbox as checked after selecting from database"

Browse Popular Code Answers by Language