Last active
March 31, 2022 18:37
-
-
Save dantetesta/37997fcbe4ff11e5f4d5e6214550a0d2 to your computer and use it in GitHub Desktop.
This file contains 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
<script> | |
//Remover o comentário abaixo para ocultar o titulo | |
//jQuery('#titulo').hide(); | |
jQuery('button[type=submit]').click(function() { | |
var box1 = jQuery('#box1 option:selected').text(); | |
var box2 = jQuery('#box2 option:selected').text(); | |
jQuery('#titulo').val(box1 +' - '+ box2); | |
}); | |
</script> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment