Why can we just empty it out?


#1

I tried to clear the .status-box class element with the .empty() but it didn't work. Why won't it work?


#2

Hey again Ben :),

empty() clears out text and child elements of the element you call it on but it doesn't work on <input> and <textarea>s - I'm not sure why :confused:
You can see the documentation for it here.