Here is the code; it's pretty simple:
It works just fine...
...until I add a space in the sGroupName variable.
The user enters some text for a new data item. All I want to do is alert them / prevent them from adding something that is already there. (The URL has other things going on, so I have put the lookup value into a DIV.)
Any thoughts?
Thanks!
Code:
[COLOR=#3465A4]var[/color] sURL = [COLOR=#CC0000]"Edit/?iAction=2&sGroup="[/color] + sGroupName;
$([COLOR=#CC0000]'#sGroupNameIsValid'[/color]).load(sURL + [COLOR=#CC0000]' #div_Results'[/color], [COLOR=#3465A4]function[/color](){});
It works just fine...
...until I add a space in the sGroupName variable.
The user enters some text for a new data item. All I want to do is alert them / prevent them from adding something that is already there. (The URL has other things going on, so I have put the lookup value into a DIV.)
Any thoughts?
Thanks!