HEX
Server: Apache
System: Linux WWW 6.1.0-40-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.153-1 (2025-09-20) x86_64
User: web11 (1011)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: /var/www/apklausos/assets/scripts/array-number-checkbox.js
/**
 * @file array-number-checkbox Array (number) checkbox layout event system
 * @license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt GPL-v3-or-Later
 */

/**
 * Activate the answer value for expression manager in Array (number) checkbox layout
 */
function doArrayNumberCheckbox(){
  $(".array-multi-flexi .checkbox-list").on("change",":checkbox",function(){
    var name=$(this).attr("name");
    if($(this).is(":checked")){
      $("#answer"+name).val($(this).attr("value"));
      $("#java"+name).val($(this).attr("value"));
      fixnum_checkconditions($(this).attr("value"), name, 'text', 'keyup', true);
    }else{
      $("#answer"+name).val("");
      $("#java"+name).val("");
      fixnum_checkconditions("", name, 'text', 'keyup', true);
    }
  });
}