I have a webserver running, which has a page containing a table with description and checkbox. What I need is to modify the row, therefore modify the state of the checkbox.
But when I click on the row to open a window from which I can edit the values, the checkbox is always set to false, even if it was true.
Here is the piece of my code that doesn't work:
if (selected_obj){
var markup = [
'<div class="confirmOverlay" id="edit_row_overlay">',
'<div id="edit_row_box" class="confirmBox">',
'<h1>Edit Row</h1>',
'<fieldset class="field">',
' <label for="id_name">name:</label>',
' <input type="text" name="name" id="id_name" value='+selected_obj.name+'>',
'</fieldset>',
'<fieldset class="field">',
' <label for="id_description">description:</label>',
' <input type="text" name="description" id="id_description" value='+selected_obj.description+'>',
'</fieldset>',
'<fieldset class="field">',
' <label for="jqxcheckboxvalue">value:</label>',
' <input type="checkbox" name="value" id="jqxcheckboxvalue" ' +
'value='+($('#jqxcheckboxvalue').is(':checked'))+'>',
'</fieldset>',
'<fieldset class="field buttons">',
'<div id="confirmButtons">',
' <button id="save_add_parameter" class="button blue">${translator("save").title()}</button>',
' <button id="close_add_parameter" class="button gray">${translator("close").title()}</button>',
'</div>',
'</fieldset>',
'</div></div>',
].join('');
How can I get the state of the checkbox? Thank you