View Full Version : I have got a problem with textcontent ?!

22 May 2014, 1:04 AM
Hey to all. I have a simple question for you. I've a template and I want to change inside when ondblclick.

<div id="item-{#}"> Item {#}
<img src="remove.png" id="close" onclick="$(this).parent().remove()"/>

When I write this to console.log its answer is " Item {#} " as normal.


Ext.Msg.prompt( 'Change Note' , 'Change your note' , function ( btn , text ) {
if ( btn == 'ok' ) {
elVal.dom.textContent = text;
}, null, true, elVal.dom.textContent);

After clicking to 'ok' button, the text is changing successfully but my remove.png is also removing itself. Why is it removing <img> tag?

23 May 2014, 12:36 AM
I found solution:


Gary Schlosberg
23 May 2014, 8:35 AM
Glad to hear you've gotten it working, and thanks for posting the follow-up.