I have this code
<table class="X">
<tr>
<td class="Y">Value</td>
</tr>
</table>
<table class="Z">
<tr>
<td><input class="edit-Y" type="text"></td>
</tr>
</table>
I need to get value from td with class “Y” to input with class “edit-Y” with jQuery.
I tried to code scripts in a different way, but anytime i got empty field or [Object Object]. Any ideas?
Thanks!
Try this,
Additional answer for the comment
If you have html like the following and you want to select each value in td and insert it the specific input boxes,
jquery would do like this,