jQuery UI Widgets Forums General Discussions Chaining methods

Tagged: ,

This topic contains 1 reply, has 2 voices, and was last updated by  Dimitar 11 years, 5 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Chaining methods #12826


    I’m very new to jqWidgets (currently evaluating) and somewhat new to jQuery, so I’m not sure if I’m missing something simple here. Do the jqWidgets not support the usual method chaining in jQuery?

    I find that the following works as expected:

    	var next = $(this).next();
    next.jqxDropDownList({disabled: false});

    I would have expected the following to also work in the same way, but it does not.

    	var next = $(this).next();
    next.jqxDropDownList('clear').jqxDropDownList({disabled: false});

    Am I missing the key to chaining the methods properly, or do I just need to resign myself to using separate statements instead of chaining methods?

    Thanks in advance for any help you can give.

    Chaining methods #12828


    Hello Donovan,

    Unfortunately, jQWidgets does not support method chaining. However, you can set multiple properties simultaneously.

    Best Regards,

    jQWidgets team

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.