Hi,

I am facing weird issue on my tapestry page.

On page I have three fields.

1st - select box -> tabindex is 1 and t:validate="required"
2nd - textfield -> tabindex is 2 and t:validate="required"
3rd - textfield -> tabindex is 3 and t:validate="required"

When my page gets load default focus is on 2nd textfield, but as per the tab 
index it has to be on select box.

To solve this issue I used below script on my tml page.

<script type="text/javascript">
   Event.observe(window, 'load', function() 
{document.getElementById('id').focus();});
</script>

This is working pretty fine, on page load focus shifted from textfield to 
selectbox, but error balloon pops up on textfield.

Please help me to solve the issue.

Thanks in advance.

Regards,
Mahendra

Reply via email to