Search code examples
gwtwidgetuniformgwtquery

Change Select value using GWT Uniform.js


I'm using uniform.js in my GWT app. I need to change the values of the select item diagrammatically. But, the widget seems does not get updated. I know this can be updated using

$.uniform.update();

But, how can I do it in GWT?


Solution

  • Hi I has the similar issue. I tried the below JSNI. It worked for me.

     $wnd.jQuery(".checker span").each(function(){
     if(!$wnd.jQuery(this).parent().find("input:checkbox").is(':checked'))
     {
     $wnd.jQuery(this).removeClass("checked"); 
     }
     });
    
     $wnd.jQuery(".selector span").each(function(){
     $wnd.jQuery(this).html($wnd.jQuery(this).parent().find(":selected").text());
     });