1
How can I move to a variable php the value of a select, whenever a different option is selected.
I tried as below, but returns me [Object Htmlselectelement]
$("select#tipo_documento").change(function (event) {
var tipo_documento = document.getElementById('tipo_documento').value;
})
<?php
$tipo_documento = "<script>"
. "document.write(tipo_documento)"
. "</script>";
?>
There are over a hundred questions about this on the site, the suggestion is to search to see which one is more like what you want: http://answall.com/search?q=vari%C3%A1vel+javascript+php
– Bacco