I am trying to get a function which searches and selects the following content of a division which is contenteditable="true".
The HTML looks like this:
<table>
<tr>
<td>Headline:</td>
<td><div class="editableDiv" contenteditable="true"></td>
</tr>
<tr>
<td>Headline:</td>
<td><div class="editableDiv" contenteditable="true"></td>
</tr>
</table>
I think the code should look like this but I probably used the next()
selector in a wrong way:
$('table tr td .editableRow').click(function(){
$(this).next().dblclick();
});