javascript - value is not appending in to div -


I am adding html to a div but it is not working please help me

  & lt; Li & gt; & Lt; A data-ck-saved- href = "" href = "class =" active "data-bookmark =" 1 "& gt; Company ad & lt; / A & gt; & Lt; Ul class = "tab" & gt; & Lt; Li & gt; & Lt; P class = "normal_p" style = "" & gt; Advertise on this website, please contact us if there is no complaint about their functioning? Maybe, do they tell about such astronomers that they have no labor? & Lt; / P & gt; & Lt; / Li & gt; & Lt; / Ul & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A data-ck-saved- href = "" href = "class =" active "data-bookmark =" 1 "& gt; Company ad & lt; / A & gt; & Lt; Ul class = "tab" & gt; & Lt; Li & gt; & Lt; P class = "normal_p" style = "" & gt; Advertise on this website, please contact us if there is no complaint about their functioning? Maybe, do they tell about such astronomers that they have no labor? & Lt; / P & gt; & Lt; / Li & gt; & Lt; / Ul & gt; & Lt; / Li & gt;  

I want to add some html content to a div. attId will be generated dynamically, it is successfully generated, I know only attId other elements are identical, so I can only use atrir.

var attId = 1; Var anchor = document.query selector ('[data-bookmark =' '' + + ETID + '' ']'); $ (Anchor) Children ("ul li"). Html ($ (this) .HTML ());

add entire html to a div < / Code> Somehow the sound why querySelector () in jQuery , the question is not clear, maybe you post part of the code that is okay for your description

']'); $ (Anchor) Children ("ul li"). Html ($ (this) .HTML ());

Although you are trying to include in the list item, although this is not clear, but I hope it helps


Comments