on reloading the page the button which is last active should show and also the content that is related to the button should be visible

I have two buttons with onclick functions. when btn1 is clicked the content related to the button is shown and btn2 is hidden and vice-versa. Onclick the button is active. When the page is loaded how can I get the last active button with the content in the div tag related to the button?

Loading spinner disables HTML5 required attribute

I have submit button (bootstrap) where i submit some data from input fields to my PHP query. I have added to this submit button a loading spinner after the button has been clicked by the user. Since i have added the spinner id to the button the HTML attribute for “required” is not longer working. It does not indicate the user a missing information anymore.

CSS: is it possible to make outline border-radius? circle shape in a square shape image

I am trying to make a menu with square shape and I wanna add a circle box shadow. similar to this: https://i.stack.imgur.com/D1owT.png but instead it’s coming something like this: https://i.stack.imgur.com/YGUWt.png and if I add border-radius is like this and it’s not what I am looking for: https://i.stack.imgur.com/HdwlW.png. this is the code I am using: nav … Read more