Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
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 Murach's Java Servlets and JSP this week in the Servlets 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: 60773

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]
I agree. Here's the link:
subject: & character in javascript
Similar Threads
Passing information to a class that displays a GUI.
problem using s:action tag
problem in field validation
Struts 2 client side validation not working with xml configuration
Scanner question about hasNext() and next()