I have a web2py application and am using jQuery to validate data. I want to write Python code inside jQuery. How can I do that?
if($("#myform_parent_id")[0].value != ''
&& $("#myform_parent_birthdate")[0].value != ''
&&
// Here I want to write Python code
..
}
Because when i make this code inside controller and then return the form it is reset selected values.