JSFiddle - React, Tailwind, and code Playground
by danheberden
HTML
<div id="row">
<input type="checkbox" />
</div>
JavaScript
//Getting the checkbox
var $row = $('#row'),
checkbox = $row.find(':checkbox');
//Change the checkbox id and name
checkbox.attr('id', 'disassociate-questions');
checkbox.attr('name', 'disassociate-questions');
console.log( $row.html() );
console.log( 'name: ', checkbox[0].name );
console.log( 'id: ', checkbox[0].id );
console.log( checkbox);