Facing issue in replacing "src" attribute.I am new to Jquery.Need to replace
D:/Images/TaskList_1033_Button.png by
D:/Images/TaskList_1033_Button_Disabled.png
<TD>
<DIV class=Editor><SPAN id=ctl02_G0_G22_G23_2_UserSelection_ECardButton_771_0_Editor class=Links disabled><A style="FONT-FAMILY: Arial; COLOR: black; FONT-SIZE: xx-small" id=ctl02_G0_G22_G23_2_UserSelection_ECardButton_771_0_Editor_0 hotKey="0"><IMG src="D:/Images/TaskList_1033_Button.png"><SPAN></SPAN><INPUT id=ctl02_G0_G22_G23_2_UserSelection_ECardButton_771_0_Editor_Selected_0 value=false type=hidden name=ctl02$G0$G22$G23$2_UserSelection_ECardButton_771_0$Editor$Selected_0></A></SPAN> </DIV></TD>
I used the below code for replacement but its not working
Script: "<div id="_vlv_script_"><script type="text/javascript"> $(document).ready( function() { var vObj = ''; $("span[id*= _UserSelection_ECardButton]").attr("Disabled", "Disabled"); vObj = $("span[id*= _UserSelection_PriorityActionButton]").children("a");vObj.attr(img[src]).replace("src",src.replace(.png", "_Disabled.png")); $("span[id*= _UserSelection_ECardButton]").attr("Disabled", "Disabled"); vObj = $("span[id*= _UserSelection_ECardButton]").children("a");vObj.attr(img[src]).replace("src",src.replace(.png", "_Disabled.png")); }); </script></div>"
could you please help me??..Thanks in advance