Today I faced a weird issue. I have made a visualforce page containing an autocomplete box for searching. I have used javascript in my controller class and have written "onchange" event in visual force page. Onchange event is fired when the value of a textbox changes and it works well in Firefox. But the same event is not fired in Chrome. I have tried using Onkeypress and Onkeyup events but they dont fit in my requirement. You may refer the snippet as belowenter image description here


  • Alphesh, you can also post code directly, but you'll need to use the 'binary button' in the editor to make it visible/formatted. – Samuel De Rycke Feb 6 '15 at 10:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.