mercredi 2 décembre 2015

How to forbid unchecking checkbox's element?

Is it possible to forbid some action on checkbox? For example I want to leave $('#post-id') and $('#activation') checkboxes always checked, without any possibilities to uncheck them?

$("#activation").attr("checked", true);
$("#post-id").attr("checked", true);

My example you can find here: http://ift.tt/1IovTvq




Aucun commentaire:

Enregistrer un commentaire