we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
pinned-register now
showing results for - "dom jquery"
Kelyan
05 Mar 2020
1$("#demo").text();                  // returns text content
2$("#demo").html();                  // returns content, including HTML markup
3$("#demo").val();                   // returns field value
4$("#demo").html('Hey <em>yo</em>'); // sets HTML content
5