jquery php embedding DOM element same problem
<p>When i embed or use php loops to create multiple div's with some id.
I want each of them to use with jquery. Say anything like simple hide/show interface.</p>

<p>But as the id is the same it wont work. I assign a variable lets say $i to php loop for the reference of uniqueness. I can assign id to a DOM element with like</p>

<pre><code>           &lt;div id="element-&lt;php echo $i ?&gt;"&gt;Bla Bla &lt;/div&gt;
</code></pre>

<p>Php echoes out here perfectly but how do i use it with jquery something like this:</p>

<pre><code>        $("#element"+&lt;?php echo $i ?&gt;).toggle();
</code></pre>

<p>Here it doesnt works.</p>

<p>How do i do it correctly and where am i going wrong ?</p>

<p>Sorry for bad english.</p>

<p>Thanks</p>
