get id of div by inner text jquery code example Example: jquery get content of div var text = $('#field-function_purpose').text()