Javascript help :(

Soldato
Joined
28 Dec 2004
Posts
7,620
Location
Derry
I've got an irritating problem I'm trying to fix, I got a CSV file that's uploaded every night to one of my servers containing usernames/passwords for customers email accounts, I set up a simple search function using csv2table (jquery) and it works perfectly if you click the submit button but the moaners that be want to be able to press return to bring up the results as well, as there's no form involved I can't work out what to do :( Any ideas?

Code:
<input id="email" type="text">
<input
       class="btn1"
       id="emailstuff"
       type    =  "button"
       onclick="$('#viewSettingWhere').csv2table('newemail.csv',{
                    where : [{'username': 'like %q%'.replace('q', $('#email').val())}]
                });"
       value="Search">

Thanks
 
Back
Top Bottom