It's worked like a charm :) Thank you!
Hi,
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");
Best Regards,
Alex
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?
Hi,
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.
Best Regards,
Alex
Lance Do
Hi,
I'm using Wikitude on Android (using Xamarin). After the web page is loaded, I cannot manipulate DOM element(s) using Javascript. jQuery cannot work too. Below is my HTML and Javascript code.
Snippet