/*--------------------------- example ------------------------------*/ $.cssHooks.foo = { get: function(elm, computed){ return $(elm).css('background-color'); }, set: function(elm, value){ $(elm).css('background-color', value); } }
$('#button-example').one('click', function(){ $('#div-demo-example').css({'foo': 'yellow'}); }); |