Posts by Wagner • 45 points
9 posts
-
0
votes1
answer51
viewsQ: Pass parameter with AJAX to PHP when opening a modal
I need to pass the id value of each link to a modal. You are returning this error in the console: What I need to resolve? custom.js:5 Uncaught TypeError: $.ajax is not a function at…
-
0
votes1
answer195
viewsQ: Capture the Hidden input values that suffered the event in the "change" select with jQuery serialize()
My AJAX is not sending form variables. What I could do to get the values of the fields <input type="hidden"> with the AJAX in the change event jQuery? I’m doing like this: HTML form <form…
-
0
votes2
answers654
viewsQ: Pick up an array index in PHP with foreach
I have this code to save the Mysql output in array $sql = "SELECT valor_cobrar FROM pedidos order by id_usuario"; $userinfo = array(); $result = $conn->query($sql); if ($result->num_rows >…
-
0
votes2
answers112
viewsQ: Change value according to the input typed using Ajax without clicking a button
I need the ajax to take the amount typed in input and show this value in a div without clicking a button, I’m using Ajax for this, but it’s not working. What I could do to solve? Meu Ajax…
-
0
votes2
answers153
viewsQ: Convert decimal value to currency value
I need to convert the number 4.500.00 for 4500,00. I’m doing it like this but it’s not working: $valor3=number_format($valor, 3, ',', '.'); What I could do?…
-
1
votes1
answer113
viewsQ: Repeat record in database on same day of each month
I need to schedule bills to pay and that every payment would be on a day of each month. I’m doing this, but it’s not working: $hoje = new DateTime($data_hoje); $semana = new…
-
0
votes1
answer193
viewsQ: Datepicker does not open when loading Ajax into a Bootstrap 4 modal
I need to open a calendar in an input that is in the file uploaded by Ajax. How can I call the plugin Datepicker when a Ajax in a modal Bootstrap? I have these codes: <!-- Modal --> <div…
-
0
votes1
answer37
viewsQ: Tag html in Jquery
I can’t get the tag <br> html in jquery. $('#test').change(function(){ $('#doenca_atual').val($('#doenca_atual').val()+" <br> "+$('#test option:selected').text()); }); Instead of jumping…
-
1
votes1
answer75
viewsQ: I can’t get user id value
I need to take the value of the user id and select in the database the records of that id. Link <a…