I have a set of divs that represent a set of fields. What I would like to acheive is that on click of a text box you can get the div with the class "hint" which is within the same div.
For example if I click "txtUsername" i should get "usernameHint"
This is the html
<div class="formfield">
<label class="desc" id="lblUsername" runat="server">Username</label>
<input type="text" id="txtUsername" runat="server" class="field text medium" />
<div id="usernameHint" class="hint" runat="server"></div>
<div id="usernameError" runat="server"></div>
</div>
<div class="formfield">
<label class="desc" id="lblPassword" runat="server">Password</label>
<input type="password" id="txtPassword" runat="server" class="field text medium" />
<div id="passwordHint" class="hint" runat="server"></div>
<div id="passwordError" runat="server"></div>
</div>
Any ideas?