If i understand your requirement.

the trick is to make the style a class style and simply add it directly to the 
div.

i.e

change div#Explanation to .Explain (a style class called 'Explain')

to target the div and add the class use :

$('#Explanation').addClass('Explain');

hope this helps
davey

Johny wrote:
> Hi,
> I have style defined like this
> 
> div#Explanation{position:absolute; top:720px; width:10px;  right:
> 0px;margin:40px 0 0 0;}
> 
> and my HTML code
> 
> 
>  <div id="Explanation">
> <table border="1" cellpadding="0" cellspacing="0" width="100%">
>   <tr>
>     <td width="6%"><font color="#FF0000">*</font></td>
>     <td width="44%">Login <input type="text" id="id_Login"name="Login"
> size="30" value="" maxlength="50" /></td>
>     <td width="50%" rowspan="2">Popis</td>
>   </tr>
>   <tr>
>     <td width="6%"><font color="#FF0000">*</font></td>
>     <td width="44%">Password<input type="text"
> id="id_Password"name="Password" size="30" value="" maxlength="50" /></
> td>
>   </tr>
> </table>
> </div>
> 
> and I would like to add Explanation style to my <div id="Explanation">
> using jQuery.
> Is that possible?
> Thanks
> BL.
> 
> 

Reply via email to