0

I have an AnchroElement generated after page is loaded.

<a id="yvs" href="#" data-toggle="tooltip" title="" data-original-title="Your voyage schedule">YVS</a>

How can i call the $('#yvs').tooltip(options) in my dart script using 'dart:js'?

Roger Chan
  • 1,293
  • 2
  • 11
  • 24
  • possible duplicate of [how to call a jQuery function from dart](http://stackoverflow.com/questions/20755337/how-to-call-a-jquery-function-from-dart) – Günter Zöchbauer Jan 09 '14 at 13:31

1 Answers1

0

You can do :

import 'dart:js' as js;

main() {
  js.context.callMethod('$',['#yvs'])
      .callMethod('tooltip', [new js.JsObject.jsify(options)]);
}
Alexandre Ardhuin
  • 71,959
  • 15
  • 151
  • 132