0
I need to send it to the archive php neighborhood. a new variable, using jQuery, how do I do?
I have an input like Hidden containing the variable idcl which contains customer data:
<input type="hidden" name="idcl" id="idcl" value="<?php echo $cliente; ?>" size="3">
How do I pass this data to the routine below?
Follow the Java Script code:
$.post("bairro.php",
{cidade:$(this).val()},
function(valor) {
$("select[name=bairro]").html(valor);
...
Within the post?
– user28595
yes, how do I?
– Gladison Neuza Perosini
Can you assemble this modified structure to pass a variable? for example?
– Gladison Neuza Perosini
Which variable do you want to pass? Where and how do you catch it? Your question is very vague, click [Edit] and detail your problem better.
– user28595
he ta doing post. don’t get the.O
– Hoppy
I don’t think it’s duplicate.
– user28595
The logic you will use is the same that was answered in your other question on that same subject Send more than one parameter in GET request.
GET
andPOST
has practically the same treatment. I suggest reading on the subject, see this article to start.– Pedro Camara Junior