I want to get a value from a field on the DispForm with jS / jQuery. I tried the following Code:
var question = $('h3:contains("Frage")').closest('td').next('td').text();
However it doesn't work. jQuery is loaded and working with other features. The name of the column is correct aswell.
What am I doing wrong?
1) I call it in a Script Webpart on the DispForm.aspx page.
2) I put the code at the bottom (so that it is the latest webpart) and it is still not working.
3) no errors in the development console
Putting it in
$(document).ready() worked! Thanks.