I really need urgent help in creating a permutation and combination function in my form. In this form users will input a 4 digit number (tablename___numbers) and there is a checkbox named “Box” (tablename___box) when user click on the checkbox it will count the total number of permutation and combination of the input numbers (tablename___numbers). for exmaple 0001 (3 same digit) = 4, 1100 (2 same digit = 6) and so on…
Form Id 25
I have tried a few coding but fail to get it running Please help to see where I have gone wrong. Thanks in advance.
I already have the formula but I need to know how to code it in Javascript.
when user enter any 4 digit number example 0001 in the number field and click on the checkout name “Box” the form will return value 4
var tablename___box = tablename___betted_numbers[0];
form_25.tablename______box.get(‘tablename______betted_numbers’).getValue();
function disableBox(thisid)
{
var tablename______box = jQuery.trim($(“form_25.tablename___betted_numbers” + thisid).val());
if(no.length != 4){
This code is what I have tried but its not generating result. my form id is 25 with element number and Box. When user enter 0001 in the number field and click the checkbox the form will return 4 I need help to see where I gone wrong