I am facing a seemingly simple issue but am struggling to find a solution.
The problem at hand involves deleting a div using jQuery and hiding it with CSS through the use of the "display" property.
Attempting to delete the div by calling the method "delete()" like this:
$("#sendReplyBox").delete();
Results in the following error being thrown:
TypeError: Object [object Object] has no method 'delete'
To address this issue, I tried the following approach:
$("#sendReplyBox")[0].delete();
However, this also ended up causing an error:
TypeError: Object #<HTMLDivElement> has no method 'delete'
It is puzzling why methods such as "delete" and "css" are not working as expected. Despite my efforts to find a solution, I have yet to find one.