ivkremer/jquery-simple-combobox

Attaching beforeOpen, afterOpen, beforeClose, afterClose event code is mis-documented

Closed this issue · 3 comments

The index.html documentation lists beforeOpen, beforeClose, afterOpen and afterClose as events, to which listeners can be attached in the same way as to change, focus etc, i.e.

$(#id).scombobox('afterClose', function(){})

In fact this give a "No such method" error. Here's an example of how to attach a function to one of these four events:

$(#id).scombobox({afterClose: function(){console.log('afterClose');}});

Thank you, fixed.

I don't see any change in index.html yet.

I'm sorry, now it is delivered.