php - pass text area value in jquery -


i have text area in php page , want pass value of php page when teaxt area changing.

<textarea name=taskdescn id=taskdescn rows=25 onclick="updatettaskdescription()" </textarea>  function updatettaskdescription() {   $('#taskdescn').bind('input', function() {     var taskdescription = $("#taskdescn").val();     //alert('ok');     //alert(taskdescription);     $.post('../myfolder/edit.php', {taskdescription:taskdescription}, function (data) {          alert(taskdescription);     });     });  } 

in edit.php

$taskdescription=$_post['taskdescription']; 

my problem can not value $taskdescription in edit.php.please body me solve this

i noticed quotes missing in textarea attributes.

try this:

<textarea name="taskdescn" id="taskdescn" rows="25" onclick="updatettaskdescription()"> </textarea> 

Comments

Popular posts from this blog

PHPMotion implementation - URL based videos (Hosted on separate location) -

javascript - Using Windows Media Player as video fallback for video tag -

c# - Unity IoC Lifetime per HttpRequest for UserStore -