the api for replaceChild is parentNode.replaceChild(newChild, oldChild);
In your snippet you have the parameters in the wrong order.
This should trigger an error which can be seen in the Android logcat or when remote debugging in the Google Chrome console.
Thanks! It worked with DOM's native APIs.
However, jQuery doesn't work. Do you have any idea. Am I missing anything or Wikitude SDK don't support jQuery anymore?
in your snippet you call $("message").html("new text"); but you are referencing an id and you probably need to add a '#' before its name.
Please try $("#message").html("new text");
It's worked like a charm :) Thank you!