Click here to Skip to main content
16,017,502 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
XML
<div class=" yellow" data-name="notes" title="View Notes">
            <div class="title">
                <h3 id="notesid" >notes</h3>

                <div class="info">
                    <a href="#" id="clear-notes" title="Clear notes">Clear</a>
                </div>
            </div>
            <div class="body">

                <div class="content-area notes-area resizeble" style="height: 130px;">

                    <textarea   title="Notes" id="notes-textarea" rows="5" cols="15">Notes</textarea>
                </div>

            </div>
        </div>

In this code, I have a div with two focusable elements---- anchor element and a text area. By default the focus is first on anchor and then on textarea but I need to exchange the focus. According to me , Textarea wud be the first element to focus and anchor element second. Can anyone help me out in this... Thanks!!!!
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900