Posts by Gabriel Fernandes • 134 points
9 posts
-
0
votes4
answers5024
viewsA: How to disable field with Javascript?
function HTeclado() { document.getElementById('cbSentidoTeclado').disabled = false; if ($("#cbHabilitarTeclado").prop('checked') == true) { $("#cbSentidoTeclado option").prop("disabled", "true"); }…
-
1
votes2
answers147
viewsA: Make data written by the user be stored in a JS object
You’re taking the element, not its value. You need to take the value attribute of the input element, like this: aluno.nome = document.getElementById("nome").value; Ai vc puts all this JS code into a…
-
0
votes1
answer159
viewsA: Send data to different pages in one form
You can put a combo inside your form and add an event inside it that takes the selected option and then change the form action accordingly. Kind of:…
-
2
votes1
answer46
viewsA: show text on another page
You can create a div under each field and make an AJAX call to your PHP validations and insert the validation result within that div.
-
2
votes1
answer100
viewsA: How to add information in php array?
Try it this way: $postFields["item1"] = "Nome1"; $postFields['valor1'] = "01"; $postFields["item2"] = "nome2"; $postFields["valor2"] = "02"; $postFields["itemN"] = "NomeN"; $postFields["valorN"] =…
phpanswered Gabriel Fernandes 134 -
2
votes5
answers289
viewsA: Capture text within the option tag
You want to get the text of the selected option, right? If it is so try: function OnChange_Campus(selectObj){ var txtOpcao = selectObj.options[selectObj.selectedIndex].text; alert(txtOpcao); }…
-
1
votes1
answer55
viewsA: Doubt fwrite writing in the file
I think this is happening because the string you are writing in the file has PHP variables that are being interpreted, try to replace '$' with another character, then when you are reading the file…
-
0
votes2
answers4327
viewsA: CSS - How to remove lines around the button?
hi, add the following property to your button’s CSS: button{ outline:none; }
-
0
votes2
answers717
viewsA: Pass Hidden input value to label
It turns out that this input doesn’t have the value attribute that you’re picking up on JS. Try this by placing the value attribute in the input: <div class="form" ng-init="rodar()"> <input…