- Net-Raft.com

Welcome aboard! We are happy you are here and wish you good net-raft!

Just a Web Code Solution

get value of div using jquery


Show ResultJQUERY


<!DOCTYPE html>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>

alert("Text: " + $("#test").text());
alert("HTML: " + $("#test").html());

<div id="test">Hello world!</div>
<button id="btn1">Show Text</button>
<button id="btn2">Show HTML</button>

By     Created   
The power of the user (%)

The most helpful solutions

get value of div using jqueryget value of div using jquery

Click to see more ...

  142     8