Apply Class on load
<p>I want to apply the following style =<code>'position: relative; left: 42px;'</code> to the label if value of the textbox is empty. and onfocus this style has to be removed </p>

<pre><code>&lt;label for'13321'&gt;Name&lt;/label&gt;&lt;input type='text' id='13321' class='box'&gt;
&lt;label for'14422'&gt;Name&lt;/label&gt;&lt;input type='text' id='14422' class='box'&gt;
</code></pre>
