1
I need an Input, where I can pass a value to it via javascript but make it invisible. I have 3 fixed values that I will always pass one of them, SAC, Distributor or Consultant, but since I need to send these values in the form just to know what kind of crud to do in the other file, I would like to use an invisible input.
I’ll give an example of the current code, just following the idea of what I use today, the type variable by default is SAC, picking it I add the input value as Sac..
<script>
if(type=sac){
$('#tipo').value('sac');
}else if...
</script>
<form action="page2">
<input style="display: hidden;" id="tipo">
</form>