I am trying to combine the words in td and input text entered in the textbox.
<table width="100%">
<tr>
<td class="CommentWords" width="25%">jsakldjs </td>
<td class="Label" width="85%"> <input class="Textcomment"
id="txtCommentWords_3" type="text" width="550px">
</td>
</tr>
<tr class="NormalItem">
<td class="CommentWords" width="25%">klsajdksajd </td>
<td class="Label" width="85%"> <input class="Textcomment"
id="txtCommentWords_4" type="text" width="550px"> </td>
</tr>
</table>
as i need to select all words from "commentWords" and "TextComment class", with associated values. Fiddler link.
for eg:
output will be
jsakldjs Å InputTextvalue ¶ // Å will be Field separator, ¶ will be Row Seperator
this what i tried, but as of now it wil return either textbox value or td value. i need to get all td value with corrsponding text values with field and row separator
var list = $(".CommentWords, .Textcomment", this).map(function() {
return $(this).val();
});