I have the following html and I want to get the value of the div which is \"Other\" How can I do this with jQuery?
Try this to get value of div content using jquery.
$(".showplaintext").click(function(){
alert($(".plain").text());
});
// Show text content of formatted paragraph
$(".showformattedtext").click(function(){
alert($(".formatted").text());
});
Exploring the zoo, we saw every kangaroo jump and quite a few carried babies.
Exploring the zoo, we saw every kangaroo jump and quite a few carried babies.
Taken from @ Get the text inside an element using jQuery