Posts by Renan • 71 points
8 posts
-
0
votes1
answer32
viewsQ: How to pass a JSP-mounted list and traverse it in a JS function by extracting its values?
I have a jsp page of a legacy code. A piece of it is as follows: <form name="frm_pedido" method="post" action='<%=(flgPrimeiroPedido ? "/pedidoConfirmaEndereco.jsp" :…
-
1
votes1
answer225
viewsQ: How do I leave an option like "default" on a combobox?
I have a combobox with several "values". I will "fail" values, just for example. Combobox: <ul class="nav"> <li> <div> <label>Tipo de Nacionalidade</label> <select…
-
0
votes2
answers1203
viewsQ: How to create a mask for Brazilian currency with character limit?
I have a code that formats the values for Brazilian currency (BRL) that works very well, but I need it to limit the number to 15 digits. Where do I put this validation? // parâmetros da função moeda…
-
1
votes2
answers256
viewsQ: How to get checkbox value unchecked using JS?
Hello, folks, please, I have the following checkbox: <ul class="nav"> <li> <div> <label>Motivo de não informar o nome da mãe</label> <br/> <input…
-
1
votes0
answers74
viewsQ: How to disable an input field after ticking a checkbox?
Hello, folks, I would like to know how to enable / disable an input field after user select an option in a checkbox? My form has a question and if the user selects the "No" checkbox, I would like to…
-
1
votes1
answer62
viewsQ: Javascript-based async, promise, and await functions to control the time a popup is open
I have the following problem: I have to display a popup to wait for the registration of a password by the user. I did so: <div id="modalSenha" style="display: none;"> <!-- Modal content…
-
0
votes1
answer155
viewsA: How do I allow a checkbox to have at least one "check"?
The above script already selects only one option from the ones available in each checkbox group. The only thing is that, for cases where it is necessary to have an "ticada" option (it cannot all be…
-
-1
votes1
answer155
viewsQ: How do I allow a checkbox to have at least one "check"?
Hello, I am running the following code that allows you to check a checkbox, the other options of that group are not checked. The problem is that this code allows none of the group options to be…