I want to get the value inside a specific <div>
that my code auto generate but when I use jQuery syntax it seems like that syntax does not recognize id tagged div.
HTML code is hold inside Variable, below is one <div>
cover by td tag that I want to get the data inside this <div>
! The string interpolation (${count}
) is correct - I have tested it by put it inside <div></div>
and its output is correct which is increase from 1 to the n base on my for loop above to initialize <div>
.
<td><div id='${count}' contenteditable='true'>editable</div></td>
$("#1").keypress(function (e) {
if (e.which === 13) {
// I don't know how get this text inside it too :(
}
});
Can anyone help me please?!