Simple CSS suggestion instead of using JS
This is a really simple suggestion for warning messages.
Instead of using JS for closing the warning message better use
HTML code :<input type="checkbox" name="close" id="close"> with a <labe for="close"l>× </label>
CSS : input#close:checked ~ .message{display:none}
Tagged:
0
Comments
This is a cool idea. Wouldn't reloading the page reset the input, thereby showing the message again?
One advantage of using JS is that it can update the db, thereby not showing the message markup to that user ever again.
Welcome to the community!
Sorry I'm new user of Vanilla forums
I didn't know that actually when you close a message it would close it forever :S
Really sorry -_-"
No problem!
I like to post questions to get feedback. Being wrong comes with the territory. But it starts a conversation.
Vanilla forums 3 Omg i missed a whole release
just rofl x)