$('query').css(a,b) - Method
dj('#id').hide(); This Function will set the css of the selected element. i.e.
dj('#id').css('color','red');
Like Here the element which have id = id. The Text color of that Element will be changed to red.
One more Advance Option ->
if you want to pass multiple css values for the element. Then You can do it in This way.
dj('#id').css({color : 'red' , background : 'blue' , cursor : 'pointer'});
or Like This...
dj('#id').css({'color' : 'red' , 'background' : 'blue' , 'cursor' : 'pointer'});
Parameters => 2 ; Reqired => 1
إرسال تعليق