Home › Forums › Quform WordPress › Looking for the right hook to trigger SQL query › Reply To: Looking for the right hook to trigger SQL query
January 19, 2022 at 2:26 pm #33904
csimstewart
Participant
Thank you @Ally and @oivanr. Both of those suggestions helped me get everything working from that initial issue question. I have a follow up question that I cannot find an answer for anywhere. Is there a jquery constructor similar to:
options.push (new Option(value, value));
which then:
$element.html(options).prop('selectedIndex', 0);
but will work on populating the options for a checkbox element in QuForm rather then the example of a dropdown? Or will I have to code all of the html variables as .append and generate the structure myself to push into the .html()?
Thank you both for your help!