Posts by Luis Fernando • 176 points
9 posts
-
0
votes4
answers553
viewsA: Get values from a multiple select (Materialize)
I was able to solve the problem, based on the answer of Leandrade and colleagues, what I did was change the way I access the element select, that is, I got the values from name instead of accessing…
-
1
votes4
answers553
viewsQ: Get values from a multiple select (Materialize)
Good morning. My problem is that I can’t or don’t know how to get the values of a Select Múltiple of Materialize V 0.100.2, if anyone can explain or help me, please, I’ll take it, but it won’t give…
-
2
votes2
answers204
viewsA: How to copy content from a div to an input?
// Elemento com o Texto var elemento = document.getElementById('teste').innerHTML; // Escrevendo em outro Elemento var texto = document.getElementById('texto'); texto.value = "Texto Copiado: " +…
-
0
votes3
answers154
viewsA: Place element in the middle of HTML
$(document).ready(function() { var contentUl = `<ul> <li>elemento 1</li> <li>elemento 2</li> <li>elemento 2</li> </ul>`; $("body…
-
0
votes3
answers749
viewsA: Javascript variables in HTML
Good afternoon. Maybe this can be useful: <html> <head> <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> </head> <body>…
-
0
votes2
answers55
viewsA: Click the button and show only date and time
Good afternoon. This may help: $('.jsData').on('click',()=>{ obtainedData(); }) function obtainedData(){ var fecha = new Date(); var options = { year: 'numeric', month: 'numeric', day:…
javascriptanswered Luis Fernando 176 -
2
votes1
answer36
viewsA: How to handle function calls in php
Of course, Voce can validate that a function exists. You can use that: <?php //O parâmetro é o nome da sua função: if (function_exists('imap_open')) { echo "Las funciones de IMAP están…
-
0
votes2
answers69
viewsA: How to handle data passed by Answer in jQuery
So, if I understand correctly, you want something like this: data = new Date("2017-08-21"); var options = { weekday: 'long', year: 'numeric', month: 'long', day: 'numeric' }; console.log( 'A data…
-
1
votes2
answers478
viewsA: Is using Jquery on a PHP page possible?
Good morning. Yes it is possible. Maybe this can help you: //Codigo PHP public function verificarSenhaCorreta( $nome_usuario , $senha ) { $query = "select SENHA from portfolio.usuario where…