QUOTE(CharlesEF @ Jun 2 2019, 04:16 AM)
I'm sorry but this code makes no sense at all. How do you expect to show or hide elements when the form is submitted? Why so many submit buttons? If you want to show or hide elements you should use a normal button, not a submit button.
I don't do jQuery so I had to read the docs. According to what I read the jQuery id selector doesn't support an array of elements, but that's how you have used it
CODE
$("#div2, #div3,#div4, #div5").hide();
. How can the user enter a Note Number when the element is marked as readonly?
I can't run your page because you have CSS and Javascript files linked from your localhost. I don't have those files so your page won't work for me. Do you have a website where you can put your test page on the web so everyone can check it?
Thank you charles ji and Christian ji for your response,
Actual intention of hide and display is,
After click of SAVE button, NOTE button should appear and onclick of NOTE button the input values should carry to other php page viz., denote.php where, all the content is loaded in a prescribed format and enables printing accordingly. There I kept a BACK button which redirects to previous page. Then, SANCTION button would appear, which is another prescribed format will load with the input fields and enables printing.
This is what I need.
1. I changed all submit type to button as suggested.
2. for the SAVE submit button I used as
<input class ="btn btn-primary" type="submit" id="submit1" name="submit1" value="SAVE" onclick="this.style.display = 'none';"/>
<input type="button" id="note" class="btn btn-success" value="NOTE" formaction="denote.php"></div>
<input type="button" id="sanction" class="btn btn-success" value="SANCTION" formaction="desanction.php">
</form>
but the SAVE submit button is hiding for 1 second only again it displaying. for the unknown reason. Can I put NOTE button display herein onclick event ?
Charles Ji, I am neither a professional web developer nor a software engineer. I am a Personal Assistant for an office. I am automating my work which accessible to a very limited persons (5 persons) over LAN (intranet). I dont have any website. I am very proud to say, I joined this forum in the year 2013 and by then with my interest and your support I reached from zero knowledge in php to current position. I really thank this forum.
regards