When u[0] = blah'blah (with a single quote), i get the error in firebug:
missing ; before statement
[Break on this error]
document.forms['search_form'].search_tit...f(getElementById('search_id').value=='')
...value='blah'blah'; is causing problems. I guess the ' is ending the
string. How can I workaround this, while still retaining the '?
When u[0] = blah'blah (with a single quote), i get the error in firebug:
missing ; before statement
[Break on this error]
document.forms['search_form'].search_tit...f(getElementById('search_id').value=='')
...value='blah'blah'; is causing problems. I guess the ' is ending the
string. How can I workaround this, while still retaining the '?
Convert it to " using one of the rails helpers or CGI htmlescape methods...