I'm trying to play a value retrieved by php
and play on a input
with JQuery
and then make a submit on a certain form, what I tried to do is here:
if (!empty($_POST['Termo'])) { $Termo = $_POST['Termo']; echo " jQuery(function($) { document.querySelector('[name='Termo']').value = '" . $Termo . "'; document.forms['frmBusca'].submit(); }); "; }
The input has the name of Termo
but nothing happens, when I get the variable Termo
I check it and it has content.