1
I wanted to make a menu of options (Buttons) on my site, and when clicking on them is loaded a value to the input.
I tried to make a script that when clicking the button, the field below was filled with some value, but I had no success with it.
<script type="text/javascript">
$(document).ready(function () {
$("#btnCorreioEletronico").on('click', function() {
document.getElementById("RecursosTI").value == "Correio Eletronico";
}
The ideal is also that it was possible to separate each option with a comma, and that it was also possible to remove with a kind of Toggle.
Can someone help me with this?