0
Guys I understand the BASICS of javascript, my area is PHP. Anyway, when you click the button an input appears, how can I do for when you click the button again this input disappear, and the button change text?
I clicked the first time >> Appeared input >> the value of the button changes
I clicked the second time >> Lost input >> the value of the button back to the pattern
<div id="inputprogram"></div>
<input class="button" type="button" onclick='insereInput()' value="Programar Notícia" /></div>
<script type="text/javascript">
function insereInput()
{document.getElementById('inputprogram').innerHTML = '<tr> <div class="input_field"><div style="margin-left:69px;"><label for="textfild"><b>Postar em</b>:</label><input required="required" type="text" name="postdate" class="smallfield"> <input required="required" type="text" name="posthora" size="03"><div style="margin-left:115px;"><i> Dia/Mês/Ano Hora:Minuto</i></div></div></div> </tr>';}
</script>
It can only be from the user’s side in the CSS-only browser?
– hugocsl
Yes, it could...
– user89739