The exact error (javascript) is

TypeError: $(...) is null 

As per the Widget documents i need to invoke below to activate the
multiselect.

$(document).ready(function(){
   $("#myselect").multiselect();
});

So it can not find #myselect in this case, i put a alert on this and it
prints null, but it does work on another simple wicket panel. Looks like
some sort of conflicts happening here.
I also tried 
jQuery.noConflict() but it did not help.

Also tried to add a markupid to my select and used that id to call the
function but that too did not work, not sure why it will not find that
select component. Even an alert on document.form.component prints null, when
the comp is indeed there.







--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-avoid-this-error-TypeError-is-null-tp4655409p4655429.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to