I have multiple checkboxes and if I select 1, 2 or 3 checkboxes then their values should be inserted in to another input. Also when we uncheck the value it should be removed from the input.
I am new to Javascript. Please help me out.
<div>
<label>Your Professional /Educational details *</label><br>
<label class="checkbox-inline">
<input type="checkbox" name="professional" value="CA/CS">
CA/CS
</label><br>
<label class="checkbox-inline">
<input type="checkbox" name="professional" value="Accounting">
Accounting
</label><br>
<label class="checkbox-inline">
<input type="checkbox" name="professional" value="Graduate">
Graduate
</label><br>
<label class="checkbox-inline">
<input type="checkbox" name="professional" value="Masters">
Masters
</label><br>
<label class="checkbox-inline">
<input type="checkbox" name="professional" value="Intermediate with sufficient Excel knowledge">
Intermediate with sufficient Excel knowledge
</label><br>
<label class="checkbox-inline">
<input type="checkbox" name="professional" value="I have no computer knowledge">
I have no computer knowledge
</label>
</div>
<input type="text" name="details" id="details">