Thanks for the reply, that's generally what I thought but was
wondering if there were an easier way. in the UI, to just include
another DIV into the Framework kind of thing..  I wrote a simple one
up last night that just uses the default, hover and active states.  I
may take a deeper look into this later today...

$.fn. frameWork = function() {
return this.each(function() {
        var $this = $(this);
        $this.addClass('ui-state-default');
        $this.hover(function(){
                $this.addClass('ui-state-hover');
                        },function(){
                $this.removeClass('ui-state-hover');
        });
        $this.mousedown(function(){
                $this.addClass('ui-state-active');
                $this.siblings().removeClass('ui-state-active');
        });
        });
};




On Feb 21, 4:09 pm, Nikola <[email protected]> wrote:
> Hello,
>
> Is there a simple way to apply the conventions of the UI CSS framework
> to any given DIV?
>
> Specifically, say, I'd like .thisDiv to also have the .ui-state-
> default class, on hover to have the .ui-state-hover class, on click
> etc... etc...
>
> I know I can easily do this by toggling / adding removing the classes
> but is there a simpler way to just include any given DIV into the
> framework?
>
> Thanks,
> Nikola
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to