JSFiddle - React, Tailwind, and code Playground
by Zaheer Ahmed
HTML
<input type="checkbox" id="myCheckBox">My Checkbox</input>
<br/>
<br/>
<input type="text" id="myTextBox" value='set attribute value' />
<input type="button" value="Check Property Now" />
JavaScript
$('input[type="button"]').click(function () {
alert('Attribute Value is : '+$('#myTextBox').attr('value'));
alert('Property Value is : '+$('#myTextBox').prop('value'));
});