Article written by

6 Responses

Page 1 of 1
  1. sbliss
    sbliss 18 Jan '11 at 11:40 pm |

    Hey—this works great. MooTools is so awesome.

    I’ve added additional code to capture disabled options, remove the events and add a disabled class. Now it pretty much is just what I needed.

    Thanks.

  2. sbliss
    sbliss 19 Jan '11 at 3:57 pm |

    if you’re interested I posted it here:

    http://squarehead.myvnc.com/code/mooSelecta_2.js

    You can see it in action here:

    http://dev.kripalu.org/library

    select the third tab “share” then click the “share your stories” button to get the form. Country dropdown has a disabled divider.

    This version captures disabled options, removes the events, and adds a disabled class for styling.

    I’m just a designer and not too familiar with Git so this is the version I’m using. It’s based on version 1.2 since I’m not running mooTools 1.3 on this project. I’ve commented all my changes.

    Thanks again for this class.

  3. sbliss
    sbliss 19 Jan '11 at 5:07 pm |

    Yeah, I never considered it either until this client wanted “United States” separated from the rest of the list.

GitHub flavoured markdown enabled.

Leave a Reply

You must be logged in to post a comment.