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