I have a form in my screen. I want to initially hide it. The user can enable it later on, enter the value, and submit the form. Submitting the form would update the screen. But this time I would like the form to stay visible. How do I do that?
The below javascript would hide the form initially.
$(document).ready(function(){
document.getElementById( 'form1' ).style.display = 'none';
});
The below script would submit the form. But is there anyway I could ensure the form stay visible afterwards? what I have right now 'document.getElementById( 'form1' ).style.display = 'yes'' does not work.
function SubmitForm1(){
document.getElementById("form1").submit();
document.getElementById( 'form1' ).style.display = 'yes'
}