Good day. I have a php condition. And you need if this condition worked then the JS function was activated
if($num == "2") { Срабатывает функция JS } JS function itself
function test12(){ $.ajax({ type: 'POST', url: 'myscript3.php', data : { OKEY3: 'OKTI3' }, success: function(data) { } }); }; I tried to put JS in a condition but it still did not work.