$("#getVerification").click(function () {
var tmp=$("#cellphone").val();
console.log(tmp);
$.getJSON("{{ url_for('auth.sendsms', cellphone=tmp )}}",
function(data){
});
});
as the code above, I want to use the string variable tmp
as a parameter in function url_for
, but I can't figure out how,
Thanks A Lot!