This might sound stupid, but I need something like this. I have displayed, say, 10 skills on the webpage, each of which is a hidden input of a form. At the bottom there is an 'EDIT' button. On clicking that, I want checkboxes to appear next to each skillName so that the user can check/uncheck them and then submit the form.
my php code snippet right now is something like this:
<?php echo '<span id="skillSet">';
for($x=0;$x<count($userSkills);$x++)
echo '<div class="skillName"><input type="hidden" name="skill[]" value="' . $userSkills[$x] . '" title="Click to select">' . $userSkills[$x] . "</div>";
echo '</span>'; ?>
<input type="button" value="Edit" onClick="someFunction()">
What can i put instead of some function to achieve the required result? Also, if there is any other way I can implement the editing thing, please do tell.
Thanks in advance!