This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes & character in javascript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "& character in javascript" Watch "& character in javascript" New topic

& character in javascript

Naresh Kavala

Joined: Jun 07, 2008
Posts: 23
HI All,

I have implemented search row functionality for data table in java script. This search is not working, if search string contains & characters.
Search String : "Martin & "
Result should be : "Martin & Luther King"

Search is working and result is displaying properly until I enter "Martin &" but if I enter space after "&" result is not showing.

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63870

This likely has little to do with JavaScript, but with handling the URL for the search. But you haven't shown us any code so it's hard to say.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: & character in javascript
It's not a secret anymore!