How to invoke a function onChange of an atrribute value in Jquery
<p>I'm trying to invoke a function <code>onChange</code> of an attribute value. 
What I'm trying is, When the user clicks on one of below div</p>

<pre><code> &lt;div id="selected" class="vblock"&gt;
 &lt;div class="vblock"&gt;
 &lt;div class="vblock"&gt;
 &lt;div class="vblock"&gt;
 &lt;div class="vblock"&gt;
</code></pre>

<p>The value of <code>src</code> attribute of <code>embed</code> tag will be changed.</p>

<pre><code>&lt;embed id="vplayer" width="100%" height="100%" name="plugin" src="resources/videos/xyz21.mp4" type="video/mp4"&gt;
</code></pre>

<p>I need to invoke a function during the change of <code>src</code> value.</p>

<p>or</p>

<p>I need to invoke the function during the modification of <code>&lt;div class="vblock"&gt;</code> to <code>&lt;div id="selected" class="vblock"&gt;</code></p>

<p>What I tried is :</p>

<pre><code>$('embed[src=#]').change(function(e){
 // code
</code></pre>

<p>Please anyone help me to do this stuff...Thanks.....</p>
