$(document).ready(function(){ $('.chkbox').click(function(){ var text='';…
Jump to turn (6)
- 1$(document).ready(function(){ $('.chkbox').click(function(){ var text=''; $('.ch
- 2here while im saving without insertig anu record it is reflecting atabase but it
- 3i mean to delete empty directly in database admin pane django
- 4it is not being selected as other one i mean if put curosr cannot be sleected
- 5im in django admin panel now tell me
- 6Click on the check box next to the empty record. if im selecting whole table dat
- User
(document).ready(function(){ ('.chkbox').click(function(){ var text=''; ('.chkbox:checked').each(function(){ text += (this).val() + ',' }) ('#chktext').val(text) }) ('#btn').click(function(){ alert('Record saved successfully') }) })
codeinserting multi select values uisng jquery <br> <form method="post"> {% csrf_token %} <input type="checkbox" class="chkbox" value="drawing">Drawing <input type="checkbox" class="chkbox" value="cricket">cricket <input type="checkbox" class="chkbox" value="writing">writing <input type="checkbox" class="chkbox" value="photograph">photograph <input type="checkbox" class="chkbox" value="horseRiding">horseRiding<br> <input type="text" id="chktext" name="options" ><br> <button type="submit" id="btn" >Insert</button> </form> </center>