Posts by GBTX • 196 points
11 posts
-
2
votes3
answers219
viewsA: Add number in array and list it
Without the array it would look like this: var totalSaque = 0; function depositar() { var deposito = document.getElementById("txt").value; totalSaque += parseInt(deposito);…
-
0
votes2
answers122
viewsA: Determine the amount of autocomplete items a textfield can allow
On the very page of Jquery have an example, I will post here for mere practicality. $( function() { $.widget( "custom.combobox", { _create: function() { this.wrapper = $( "<span>" ) .addClass(…
-
0
votes2
answers14478
viewsA: HTML code in the body of the e-mail
You can check the compatibility of the tags with each Webmail, for this has some websites that help. Building html/css code for email is much more limited than for the browser. Follow 2 sites that…
-
0
votes1
answer186
viewsA: How to drag an element when dragging the parent element?
Well, the class can be used .Parent of jquery follows full code below: $(".atividade").parent(".list-group-item").draggable({ appendTo: 'body', helper: "clone", opacity: .95, refreshPositions: true,…
-
1
votes1
answer45
viewsA: Jquery validation
The repetition problem is related to this line: $("#region_tabVersao_N_txtH").after('<span class="error">Campo Obrigadorio</span>',null); Where .after adds the element after the…
-
3
votes2
answers6698
viewsA: How to enable or disable an input according to a select html javascript option?
Well you can take as a basis this example: function verifica(value){ var input = document.getElementById("input"); if(value == 2){ input.disabled = false; }else if(value == 3){ input.disabled =…
-
0
votes1
answer43
viewsA: Jquery of my page does not work after being called by an Xmlhttprequest
Well one of the solutions is to execute the code via jquery using the method .Load: function loadDoc(){ console.log( "Chamada." ); $( "#listview" ).load( "./app/getresult.php", function() {…
-
0
votes2
answers52
viewsA: Update page when submitting template
No form is included the action tag where will send the data via POST. <form name="form" method="POST" action="arquivo.php" onsubmit="return form_validation()" > Replace the.php file with the…
-
1
votes1
answer769
viewsA: Register multiple records using the same form
A solution would be to place inputs to send values as an array. For this you can include and modify these lines in the html file <form method="POST" action="cadastro.php">…
-
1
votes1
answer115
viewsA: Register selected checkbox values with php and Pdo
By code, you are not handling the various courses which in case is an array. In this case, you must transform the array into a string if the courses column is of this type. For this you can use the…
-
1
votes1
answer38
viewsA: Discount on a form item, after choosing a combo option
Follows a solution Include in the form.js file: $( "input[name=promo]" ).on( "click", function() { $("#sopa1").val(9.90); $("#sopa1v").text("9,90"); }); And in the html file modify this line:…