Posts by Matheus Czizeweski • 61 points
4 posts
-
0
votes2
answers143
viewsA: Input event only happening when loading the page
You can use the event change. $(".campo-digitacao").on('change', atualiza); Or also the event keyup bindando in input. $(".campo-digitacao").bind('keyup', atualiza);…
-
0
votes1
answer247
viewsA: Receive a string from a PHP array for a Javascript variable?
Pass the array as json with the function json_encode: <script type="text/javascript"> // passando a matriz do php para o javascript var matriz = <?php echo json_encode( $matriz ) ?>; //…
-
2
votes5
answers269
viewsA: Changing text in several different places of the HTML page
Using only JS with the function [querySelector()][1] document.querySelector("#i18n_label_name").innerHTML = "Novo Texto"; document.querySelector("#i18n_label_contact").innerHTML = "Novo Texto";…
-
1
votes2
answers782
viewsA: Inserting HTML blocks into HTML document using PHP
Using only php you can use the function createDocumentFragment or creteElement and after, give an append on the DOM with the function appendchild. However, using JS or JQuery you can manipulate the…