JavaScript Disabling or enabling a button depending on checkboxes oracle apex disabled enabled button jquery,disabled enabled button javascript,disabled enabled

I have a report with checkboxes in each row and one submit button. I want to disable button when all checkboxes are unchecked. Button should be only enabled when at least one checkbox is checked on report. I tried to do this by creating a dynamic action of type enable/disable. When no checkboxes is checked the button is disabled but when there is at least one check, button is still disabled. I tried also javascript to to this but I couldnt accomplish because of my poor js knowledge. The codes I tried are below:

$("input[type='submit']").prop('disabled',true);
if ( $(this.triggeringElement).is(':checked') )
    $("input[type='submit']").prop('disabled',true);

///

if ($('input[type='checkbox']:checked').length > 0 && $("input[type='submit']").is(':disabled')) {
    $("input[type='submit']").removeAttr('disabled')
} else if ($('input[type='checkbox']:checked').length == 0) {
    $("input[type='submit']").attr('disabled', true)
}

Query of report:

SELECT  APEX_ITEM.CHECKBOX2(1,URUN.BARKOD, 'class=indCheck') "Select", U.AD, MA.AD MAGAZA_ADI, FIYAT, APEX_ITEM.SELECT_LIST(
        p_idx           =>   2,
        p_list_values   =>   '1;1,2;2,3;3,4;4,5;5,6;6,7;7,8;8,9;9,10;10',
        p_show_null     =>   'YES',
        p_null_value    =>   NULL,
        p_null_text     =>   '-0-',
        p_item_id       =>   'indSelect') "Adet"
FROM URUNSATIS URUN, UYE UN, ADRES AD, ANLASMALAR AN, MAGAZA MA, URUN U
WHERE UN.USERNAME = :SESSION_USER_NAME AND UN.ID = AD.UYE_ID AND AD.APARTMAN_ID = AN.APARTMAN_ID AND AN.MAGAZA_ID = URUN.MAGAZA_ID AND MA.ID = URUN.MAGAZA_ID AND U.BARKOD=URUN.BARKOD
ORDER BY 1;
Answer:1

I have a minified app.min.js file which is ~ 80Kb big and contains all javascript code my website requires. If I include this file as script with source pointing to app.min.js everything works fine, ...

I have a minified app.min.js file which is ~ 80Kb big and contains all javascript code my website requires. If I include this file as script with source pointing to app.min.js everything works fine, ...

  1. jade minify javascript

In my script I am loading an image from an array into a div, then I calculate some style elements to be tuned. The problem is that this works only if I use a timeout function before calculating the ...

In my script I am loading an image from an array into a div, then I calculate some style elements to be tuned. The problem is that this works only if I use a timeout function before calculating the ...

This might be a question more for Jasmine or Angular, but I’m wondering how to use the Loopback-generated Angular services in my tests. I don’t need to test the services themselves, but I need to test ...

This might be a question more for Jasmine or Angular, but I’m wondering how to use the Loopback-generated Angular services in my tests. I don’t need to test the services themselves, but I need to test ...

  1. loopback services angular

How to transform "t=1&m=6&r=2" to {t:1, m:6, r:2} by lodash?

How to transform "t=1&m=6&r=2" to {t:1, m:6, r:2} by lodash?

  1. transform string into list python
  2. transform string into datetime python
  3. transform string into number javascript
  4. transform string into array
  5. transform string into number python
  6. transform string into list
  7. transform string into array javascript
  8. transform string into date javascript
  9. transform string into numeric stata
  10. transform string into json python
  11. transform string into dict python
  12. transform string into array php
  13. transform string into json
  14. transform string into array python
  15. transform string into array js
  16. transform string into int java
  17. transform string into int
  18. transform string into int c++
  19. transform string into variable python
  20. transform string into date stata