jquery-maskmoney
jquery-maskmoney copied to clipboard
readonly and disabled fields accepts data
you need to put this line bellow inside function keypressEvent and keydownEvent:
if (!$input.prop('readonly') && !$input.prop('disabled')) {
//ALL FUNCTION CONTENT HERE
}
This will prevent readonly and disabled fields to be writen by user.
A slightly better fix is to short circuit it at the top of the two key events
function keypressEvent(e) {
if ($input.prop('readonly') || $input.prop('disabled')) {
return false;
}