Posts by yanntinoco • 126 points
7 posts
-
1
votes1
answer206
viewsA: Select only ONE checkbox with vanilla javascript and bootstrap 4
Access the property .checked: function checar(){ let termosCondicoes = document.getElementById('accept-term'); if(termosCondicoes.checked) alert('Li e concordo com os Termos de uso está marcado');…
-
2
votes3
answers501
viewsA: Like leaving a pie div?
Create 2 Divs, one that will be the container of the other: <div class="skew"> <div>Texto</div> </div> and set the style of the first with the skewY desired: -ms-transform:…
css3answered yanntinoco 126 -
1
votes1
answer90
viewsA: Generalize a Javascript dropdown function?
Javascript below should cater to events about target: $('.sb-dropdown-toggler').click(function (e) { e.preventDefault(); $(this).next().toggleClass("dropdown-active"); }); Not tested, I’m on cell…
-
2
votes2
answers196
viewsA: Error: Notice: Undefined index || PHP || MYSQL ||
These errors (large part) are occurring, because the request method is not the same as in if: if( isset($_POST) && !empty($_POST) ){ You are probably accessing the page directly and not by…
-
1
votes2
answers101
viewsA: Help in a PHP logica
Look, if I understand correctly, you’re having trouble accessing the data, one by one, from your array created from the JSON object. I will suggest you the example below using the function foreach…
-
0
votes2
answers193
viewsA: Variable call another
to display something in the $name['name'] and $type['type'] variables declared within foreach note the block below: <?php $tipo = array("tipo" => "TIPO NO ARRAY"); $repositorio = array("chave"…
-
1
votes3
answers1117
viewsA: Validate the form without sending it
if it is that I understood what you need, one of these examples below will serve: <html> <head> <title>Validando formulários e previnindo o envio se não for aprovado na…