i was just wondering if there is anyway i could copy text from a div with same class name into an input field
i am trying to copy text from the last div with same class name then paste into input field how could i do this?
<div class="message">TEXT HERE</div>
<div class="message">TEXT HERE</div>
<div class="message">COPY THIS TEXT TO INPUT</div>
<div id="input_box" class="td_input">
<input type="text" name="content" id="content">
</div>
sorry for my bad english