To count number of spaces using jquery?
<p><strong>Question:</strong> I need a solution to find number of empty spaces infront of checkbox inside list tag by using jquery </p>

<pre><code>   &lt;li id='list_id'&gt;
    &amp;nbsp;&amp;nbsp;&lt;input type="checkbox" name="check"&gt;good
   &lt;/li&gt;
</code></pre>
