Contact pop up form[solved]

Hi guys,
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?

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 @camperextraordinaire suggested.

2 Likes

You understood me and your solution works good. So ty, and sorry for my imprecision.