java script for enter button in content page is not working properly?
-
Hi All i have an JavaScript for onkeypress to hit enter key when user press enter on textbox. i have master page which has textbox and button for searching. and in content page i have facility of login. when i enter password and press enter it will enter the key press of serach button defaultly. i put the javascript in master page and check with it. javascript function is call(as i put alert) but enter key is not working for login button.
Regards Keyur Satyadev
-
Hi All i have an JavaScript for onkeypress to hit enter key when user press enter on textbox. i have master page which has textbox and button for searching. and in content page i have facility of login. when i enter password and press enter it will enter the key press of serach button defaultly. i put the javascript in master page and check with it. javascript function is call(as i put alert) but enter key is not working for login button.
Regards Keyur Satyadev
Hello, Please put the searching fields that are search text box and button in one PANEL and use DefaultButton property of that panel. Give the ID of the Search Button in DefaultButton of search panel. Similarly, use the panel for login area. And give the ID of Login Button in DefaultButton property of that panel. I hope this will help. Bye,