Posts by Danilson Veloso de Sousa • 13 points
3 posts
-
1
votes0
answers42
viewsQ: Why does the PHP session not work if I already have a variable in the super global $_SESSION?
I have the following code in the file config.php: <?php if(session_status() != PHP_SESSION_ACTIVE ) { session_start(); } $_SESSION['id_sessao'] = session_id(); ... It turns out that when I send…
-
0
votes2
answers119
viewsA: How to expand a two elements simultaneously with Javascript?
Solved. var i = window.setInterval(expandir, 1000); function expandir(){ var count = $(".fechado a").length; document.querySelector(".fechado a").click(); var count = $(".fechado a").length;…
-
0
votes2
answers119
viewsQ: How to expand a two elements simultaneously with Javascript?
I need to expand two elements. Both have the same class css. The name of class for expansion is .fechado a. One is in the element .accordion-seta and another in .accordion-sinal. It would be…