| Get imgAltText and Path in Javascript Need an example Javascript |
jayson77

msg:4495380 | 12:23 am on Sep 15, 2012 (gmt 0) | This is my response <createstkyUserResponse xmlns="http://xyz.com/abc"><stky imagePath="Bicycle/mc20/bicycle.jpg" imageAltText="Bicycle 123"/> the image list I get it from this div imageList += '<div class="myclass"><img class="stky" src="data:image/png;base64,' + $(this).text() + '"></div>'; i need the imageAltText and path tried this way not working var imageAttr=image.attr("id"); var myAttr=imageAttr.split("-"); applicationObj.imagePath = myAttr[0]; applicationObj.imageAltText = myAttr[1]; Please need a help will be appriciated
|
|