Reputation: 167
I want to remove the text. I'm using the following function.
var ta=$('title', item).text();
The out put of this is "Cases That Charge On-The-Go(video)". I want to remove the "(video)" from the text. plz let me know ho
Upvotes: 0
Views: 43
Reputation: 103375
var ta = $('title', item).text().replace("(video)", "");
And if you want to remove any text between the parenthesis:
var ta = $('title', item).text().replace(/\(.*?\)/, "");
DEMO: http://jsfiddle.net/VNbjg/
Upvotes: 0