Hey Guys, firstly thanks for taking the time to read this!
So I'm just starting out, and having a little difficulty understanding how to target other html markup around a certain 'on click' item.
here's the setup:
<ul>
<li>
<a> - Click Function
<ul class="replies">
<li><form><p><TEXTAREA /></p></form></li>
</ul>
</li>
</ul>
So when the user clicks the anchor the text is inserted into the following textarea. I achieved this by:
- $(this).nextAll('ul.replies').children('li').children('form').children('p').children('textarea').val($areaValue + $username);
Is there an easier way?
thanks!