im trying to do Portfolio Webpage challenge. I want build a pop up form for contact. I found this code, but it give me problem when i try to hide “abc”. Someone can help me?
Can you give more details about what you are trying to do and what you want to have happen when certain buttons are clicked versus what is actually happening?
I’m guessing he’s trying to hide the form without actually submitting it.
@stefalber the default type of a button is “submit” therefore, by being inside the form, it will submit it when pressed. Give your button a type of “button” and it should work like you want.
<button type="button" id="popup" onclick="div_hide()">Close</button>
If this wasn’t what you were asking try and be more specific, like @RandellDawson suggested.
You understood me and your solution works good. So ty, and sorry for my imprecision.