In My Application i m using RichTextEditor on a form with some other fields. I set focus on first text box like this
$("#tofield").focus();
But as RichTextBox is taking some time to load, so when RichTextBox loading complete focus removed from first text box.
I searched on it and found some suggestions to use setTimeout
setTimeout(function () {
$("#tofield").focus();
}, 1000);
but it is also not working
focus() is only working in FF not in Chrome and IE
Any suggestions..