Last active
May 25, 2022 12:09
-
-
Save dantetesta/f3e0fa526f80a5bd21091935c1814bb1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*BY: ASK JARVIS + DANTE TESTA */ | |
<script> | |
window.onload = function() { | |
var idpost = parseInt(document.getElementById('idpost').textContent); | |
var eventos = document.getElementById('eventos'); | |
var eventoencontrado = eventos.querySelector('option[value="' + idpost + '"]'); | |
eventos.innerHTML = ''; | |
eventos.appendChild(eventoencontrado); | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment