Problem refreshing Widget

Problem refreshing Widget

Hi,

I'm having a problem refreshing my Widget that is created via javascript (meteor framework):

  1. <div>
  2.     <div>Output: EXO-01.1</div>
  3.     <select id="flip" name="." data-role="slider">
  4.       <option value="Off">Off</option>
  5.       <option value="On">On</option>
  6.     </select>
  7. </div>

In order to get the widget rendered, I tried:

$('[data-role="slider"]').trigger('create');
or
$('[data-role="slider"]').trigger('refresh');

But none is working.
How can I make sure the Widget is refreshed/rendered?

Thanks,