populate radio buttons

Home Forums Quform WordPress populate radio buttons

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

    Hi
    I am workint to populate radio buttons, but I don’t get it.
    I am making an ajax call, thats fine, I get the answer from PHP, thats fine, but I can’t populate the radio buttons with the values that come from PHP.
    Is there any guide?
    Here is the code that I am using

    success: function(salida){
    var original = salida.trim();
    var cadena = original.substr(0,original.length-2);
    var data = cadena.split(‘,’);
    var largo = data.length;
    if (salida.trim() === ‘nada0’){

    }else{

    for(var i = 0; i < largo; i++) {
    var numero = i+1;
    var opcion = radioGroup+’_’+numero;
    var item = data[i].split(‘-‘);
    $(opcion[name=item[0]][value=item[1]]);

    }
    }
    }

    radioGroup = var radioGroup = ‘.quform-field-43_12’;

    #34086
    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. © 2020 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy