I want to do something like
var radioId = $("input[name=id-radio-group]:checked", "#my-form").val();
document.getElementById("my-panels").innerHTML = ``;
document.getElementById("my-panels-2").innerHTML = ``;
in jQuery script.
I know that I can never pass js variables to jinja template, since there are quite a lot of answers in StackOverFlow telling me that. But none of the "work-around" solutions those answers propose work for me.
So the question is, how can I use the radio selected by user in jinja template to produce panels specific to the option they chose?
FYI, I use python and protocol buffer.
Aucun commentaire:
Enregistrer un commentaire