aspose file tools
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 The Software Craftsman this week in the Agile 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: 62307

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] [Bear's FrontMan] [About Bear] [Books by Bear]
jQuery in Action, 2nd edition
subject: & character in javascript