I need to translated the following JQuery code to Dart:
$("#writepad").jqte();
I 've tried the following but didn't succeed:
var jquery = new JsObject(context['window.jQuery("#writepad")']);
jquery.callMethod('jqte');
I'm trying this hoping that it may stop jqte from displaying dynamically generated buttons twice. Your help is highly appreciated. Thank you.
With dart:js :
context.callMethod(r'$', ['#writepad']).callMethod('jqte');
context can be seen as an alias for js window.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With