how to get contents of div in jquery code example Example: jquery get content of div var text = $('#field-function_purpose').text()