[SOLVED] jQuery .hide() or .remove()

I’m running into a jQuery issue - and I’m not sure what I am doing wrong!
Trying to figure it out on this codepen here -


Basically when I CLICK submit - I want a FUNCTION to run. I also want to hide/ remove some elements and replace them down the line with the result from the function. But first I need to figure out how to HIDE/ REMOVE.

Can you add something like this in a function? $(“p”).remove();

Somthing like this?

http://codepen.io/ouauo/pen/bgOddM

YES!! I kept tinkering about with the code and my hide() would only work once I moved the button element out of the form… not sure why.

I like ur solution - gonna compare it to what I’ve been doing too! THANK YOU!!! :slight_smile: