How to get checked checkboxes in JSP

前端 未结 2 1872
故里飘歌
故里飘歌 2020-12-07 01:07

How can I get/set checkbox value using jstl and delete only those record from the database where the checkbox is checked? can you also advise how to use ternary operators in

2条回答
  •  萌比男神i
    2020-12-07 01:57

    this may help you.

    In ajax call:

    var boolValue= $(this).closest(".tr").find('.checkboxClass').is(':checked');
    
    $.post("/api/dosomething", {                                     
        someSettings : boolValue
    })
    

提交回复
热议问题