I'm trying to invoke a function onChange
of an attribute value.
What I'm trying is, When the user clicks on one of below div
<div id="selected" class="vblock">
<div class="vblock">
<div class="vblock">
<div class="vblock">
<div class="vblock">
The value of src
attribute of embed
tag will be changed.
<embed id="vplayer" width="100%" height="100%" name="plugin" src="resources/videos/xyz21.mp4" type="video/mp4">
I need to invoke a function during the change of src
value.
or
I need to invoke the function during the modification of <div class="vblock">
to <div id="selected" class="vblock">
What I tried is :
$('embed[src=#]').change(function(e){
// code
Please anyone help me to do this stuff...Thanks.....