hi everybody,
i really appreciate if somone could help me ? i try to google few days but no luck to find what i want, and since im kinda new in js (jquery) i need some help, so
i have a xml file that i will load inside a div on the website, and one of the element is a function with some content like
<function> xxxx</function>
<function>ppppp</function>……
what i would like to do is double click on a text xxxxx and the element function inside the div will delete without the xxxx
result:
xxxxxx
<function>ppppp</function>
so far is my code:
$(“.containtext”).dblclick(function(){
$(“function”).remove().text(txt);
})
but this code will delete all the element function from the div even with his contents
thanks in advance