I don't understand the difference beetwen Jquery .attr() and .prop(). In my website i need to open a popup and inside that I have a form. Now i wonder to know how can I change the state.
If I have:
<input type="checkbox" name="giustificaEntrata" value="1">
I want this element checked when I open the popup - How do I do that?
I also want the beta
value selected when I open the popup
<select name="pippo">
<option value="vuoto" selected>-</option>
<option value="beta">beta</option>
</select>