php - posting array of checkboxes in a dragable UI: not getting posted -
i using array of checkboxes in draggable ui, can change row order drag , drop. when drag bottom entries top not getting checked checkboxes on post.
you can try moving row in inspect element.
<form type="post" name="chekfrm" action="index.php"> <table> <tr><td><input type="checkbox" name="dconf_check[]" value="18" checked="checked" id="dconf_18" title="name"></td></tr> <tr><td><input type="checkbox" name="dconf_check[]" value="13" checked="checked" id="dconf_13" title="name"></td></tr> <tr><td><input type="checkbox" name="dconf_check[]" value="19" checked="checked" id="dconf_19" title="name"></td></tr> </table> <input type="submit" name="submit" value="submit">
print_r($this->input->post("dconf_check"));
the issue because of not closing form in codeigniter (echo form_close();
).
it getting checked checkboxes on post, when not dragged it's place.
when drag 4th 1 on top post checkboxes greater or equal 4, means not first three.
Comments
Post a Comment