unable to remove div inserted by jquery -


Trying to remove a div inserted by jquery onclick. For some reason it has not been working yet () has tried to remove; to conceal(); CSS (); Empty (); They are not all just working .. So here is my JS function

  function column () {var content = '& lt; Div id = "floating_box" class = "fb" & gt; 'Sdfsdfsdfsdfsfsddsfsfsdfsdfsdfsfsdfsdfsdfsfsdfsd' '& lt; / Div & gt; '; JQuery ('body.floating_box') below () .; JQuery ('body') enclosed (content). }  

And here is my HTML code

  & lt; Div id = "notify" class = "nn" onclick = "callme ()" & gt; & Lt; Span id = "nbox" class = "nb" & gt; & Lt; Img src = "gn16.png" & gt; & Lt; Span id = "ntext" class = "nt" & gt; 23 & lt; / Span & gt; & Lt; / Span & gt; & Lt; / Div & gt;  

  function callme () {var content = '& Lt; Div id = "floating_box" class = "fb"> gt; + 'Sdfsdfsdfsdfsfsddsfsfsdfsdfsdfsfsdfsdfsdfsfsdfsd' + '& lt; / Div & gt; '; JQuery ('# floating_box') to ON () .; If (! $ ('# Floating_box'). Length) jQuery ('body'). Attachment (content); }  

Comments

Popular posts from this blog

paypal - How to know the URL referrer in PHP? -

oauth - Facebook OAuth2 Logout does not remove fb_ cookie -

wpf - Line breaks and indenting for the XAML of a saved FlowDocument? -