On my visualforce page there is an input text field and two buttons.I am trying to hit the second button on my page with the 'enter' key by calling a javascript on text field, where in my target is on my seccond button. I am trying to access the button id using $Component notation, however everytime its value is null. Tried using the nested ids but didn't work.
Any useful links or suggestions are appreciated.
Below is my visualforce page