TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Sairam
NA
321
417k
String function in query ., to check contains and replace string
Nov 28 2011 1:08 AM
hi.,
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('<img src=' + imgpath + ' width="50" height="50"> ');
Thanks
Akila
Reply
Answers (
1
)
Issure in calling jquery method on the mouse over of dropdownlist item
Select Element