Doing some calculations

Home Forums Quform WordPress Doing some calculations

This topic is: not resolved
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #32448
    neosofts
    Participant

    I have the below JS which is not working for some reason.. anyone can help out??
    var rtotal = 0;
    var val256 = $(‘.quform-field-1_430_1:checked’).val();
    switch(val256) {
    case 1:
    rtotal += 1;
    break;
    case 2:
    rtotal +=2;
    break;
    case 3:
    rtotal +=3;
    break;
    }

    Its a select menu with numbers from 1-7 in options.
    can’t figure out why its always taking one value.

    Tried if else and it didnt work as well!

    Anyone can help our please.. its urgent!

    #32449
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Be inspired. © 2024 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy