Based on drpodown box selection . , i want to display logo of concern.,
example
Corcen name can be like this
sun-123
macro-12
macro 123
Have to take the string that is present before - or empty space
like
sun
macro
macro
and all the image files are not in same format ., each and everyone is gif or tif ,jpeg... ,,How to select a image of any type keeping name alone ....
var imgctry = $('#<%= DropconList.ClientID %> option:selected').text();
imgctry = imgctry.replace(' ', '');
alert(imgctry);
var imgpath = "images/Flag/Carrier Brands" + imgctry + ".png";
$jqry('#DivBillerImg').html('
Thanks
Akila
Posted Nov 28, 2011, 6:23 AM
Instead of getting the image name and tryin to convert it..get the selected index of the dropdown event and accordingly attach the image names..sice u already know at wat index of dropdown lies wat image...may be a switch case could help u in the code....
Give a try....
With regrads
P.Krishna Prasad