get a in div jquery code example
Example 1: jquery get content of div
var text = $('#field-function_purpose').text()
Example 2: jquery find tag and class
$(".txtClass") => getElementsByClassName()
$("#childDiv2 .txtClass") => getElementById(),
then getElementsByClassName()
$("#childDiv2 > .txtClass") => getElementById(),
then iterate over children and check class
$("input.txtClass") => getElementsByTagName(),
then iterate over results and check class
$("#childDiv2 input.txtClass") => getElementById(),
then getElementsByTagName(),
then iterate over results and check class
Example 3: (this).find
$('article a').click(function() {
$(this).parent().find('h3').slideToggle('fast');
});