Hi hartum,

applying the value isn't enough, you have to fire the event manually...
$('check1').fireEvent("change");

http://jsfiddle.net/NKjoep/6A4Rc/2/

--
Andrea

On Thu, Mar 15, 2012 at 17:03, hartum <[email protected]> wrote:

> Hi every body
>
> I am developing a plugin, to simulate iphone switch (on/off) on
> checkboxes.
>
> My problem is  about addevent(change) to checkboxes, when I click the
> checkbox the "change" event is fired,
> but when I try to change it by code I can't get the "change" event.
>
> Could you help me?
>
> Here is the code:
>
> http://jsfiddle.net/6A4Rc/

Reply via email to