Toggling color of Text Input with Button click - jQuery
===

    $("#btn").button().click(function() {
        $("#textinput").css('color',function(clr) {
            if ($("#textinput").css('color') == '#000000')
                return '#ff0000';
            else
                return '#000000';
        });
    });

for some reason I cant toggle between the colors in input text. the .css docs of jQuery states the following: 

> Different browsers may return CSS color values that are logically but not textually equal, e.g., #FFF, #ffffff, and rgb(255,255,255).

in general, how can i get the property value of UI object (css values are constant?) ?

thnx!