How to Get The ID Value or DIV Content in ASP.NET

If you have to continue developing unfinished website from other developers, what you do is read the entire code, hoping that you’ll understand everything. What if you come up with an ID value or DIV content that you don’t know what is for and what is its purpose? This tutorial will explain how it can be done with just a few code snippets. This also shows the code samples and what it looks like when you look for the ID value or DIV content of the website.

To give you an idea, here is the code snippet:

<script type=”text/javascript”>
$(document).ready(function() {
$(‘#btnClick’).click(function() {
var divtxt = $(‘#contentdiv’).html();
alert(divtxt);
})
});

</script>

 

Read the tutorial here: http://www.aspdotnet-suresh.com/2012/10/jquery-get-div-id-value-or-div-content.html

Leave a Reply

Your email address will not be published. Required fields are marked *