Stupid Javascript question
October 8, 2008 9:23 AM
Subscribe
I want to have data with spaces in it, in a link that is sent to a javascript function but it does not work. What am I doing wrong?
I want something like this to pass the data to a function, imagine inside a a link in the onClick=somefn('Data with a space'). It works fine for data without a space but doesn't work for data with a space.
posted by bytewrite to computers & internet (6 comments total)
1 user marked this as a favorite
posted by xbonesgt at 9:41 AM on October 8, 2008