checkbox is always “on”

后端 未结 8 1292
抹茶落季
抹茶落季 2021-01-07 16:32

Hy!

When Uploadify send the file to the action, I need to know if the checbox is checked or not, so I did:

    $(\'#uploaded\').uploadify({
        \         


        
相关标签:
8条回答
  • 2021-01-07 17:05

    Change:

    $('#checkbox').val()
    

    to

    $('#checkbox').attr('checked')
    
    0 讨论(0)
  • 2021-01-07 17:10

    You can give

    if(jQuery(this).attr('checked')){ // u have to use this selector according to your function it may be .click .live or else..

    Thanks

    0 讨论(0)
提交回复
热议问题