var gethtml = $("#topmenu > li.l89 a").text().split(' ')[1].replaceWith('Any World');
The text is not changing even after using replaceWith as shown above.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
After you call .text() you are no longer working with a jQuery object, but with a plain string.
You can do it like this…
I wrote the long version for you to see the steps. If you want you can do it on a single line, but it is not very readable anymore.