we can call javascript function in loadUrl as below.
myWebView.loadUrl("javascript:(function() { var x=3+4;alert(3);})()");
Is it possible to add jquery function in loadUrl i.e $.post in loadUrl method of Webview. if yes then help me.
we can call javascript function in loadUrl as below.
myWebView.loadUrl("javascript:(function() { var x=3+4;alert(3);})()");
Is it possible to add jquery function in loadUrl i.e $.post in loadUrl method of Webview. if yes then help me.
jQuery is javascript. So you can :
myWebView.loadUrl("javascript:$('.navbar').css('display', 'none');");
Also don't forget to enable javascript on the webview :
myWebView.getSettings().setJavaScriptEnabled(true);