views:

1190

answers:

1
<script type="text/javascript">
var auto_refresh = setInterval(
function ()

{
$('#load_tweets').load('record_count.php').fadeIn("slow");
}, 10000); // refresh every 10000 milliseconds


<body>
<div id="load_tweets"> </div>

I Want to get the value of load_Tweets ./these all code in js file i want to get the value of load_tweet in a variable and match the value like if value is 3 then i disabled textarea .pls let me also know how to disabled the textarea its also created in js file too thx

A: 

By using the load function you are trying to load HTML from a remote file and inject it into the DOM. You can specify a callback function which executes when the request is complete for this.

To disable textarea

$("#yourtextareaid").attr("disabled", "disabled");

and to re-enable it

$("#yourtextareaid").removeAttr("disabled");

Edit:

You can use the

text()

to extract the text inside the div.

Eg:

$("#yourtextareaid").text();
rahul
yes i need to get the innerhtml of the div like when data is loaded i want to get the data for comparison thx for your reply
honest