The prop () method is used to modify Javascript native properties of the elements of a page.
In principle, sending a single parameter helps us access the value of a property, that we indicate in the parameter. The other option is used to modify a property and for this we must indicate two parameters, the first would be the property to be modified and the second the value that we want to introduce.
$(elemento).prop("checked");
This would return the value of the Javascript " checked " property, which we surely know, is a Boolean that indicates whether or not a checkbox field is true or false marked.
If we wanted to modify the status of the checkbox , we do the following:
$(elemento).prop("checked", true);
This would make the checkbox marked as confirmed.
And in case the property disabled , it would be as follows:
$(elemento).prop("disabled", true);