I need to create a array
in javascript tag that is submitted your information to a page php .
How can I do this?
Next, I had a php that I uploaded, repeated data from the bank.
So to improve her performance, I've created a script in javascript I copied the contents of the tables.
But each table has a option
and every option
has a selected
, so I need every option
to start as its specific phrase, just like the whole pg in php . For this I did the script below:
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script><script>$(document).ready(function(){//frasequedesejolocalizarvarfrase="minAlarme4_analogico00",
localizado = null;
// loop que percorre cada uma das opções
// e verifica se a frase da opção confere com o
// valor de fase que está sendo procurado
// valor de fase que está sendo procurado
$('#Linha5 option').each(function() {
// se localizar a frase, define o atributo selected
if($(this).attr('value') == frase) {
$(this).prop('selected', true);
}
});
});
</script>
However (minAlarme4_analogico00 ") is the name of a sensor and I have type 1500. So I need an array to communicate with the php tag so that the same get the names of the sensors.