Is there any way to assign ASP variable between jquery function is executing?
<%
txtDescription = Replace(strBody,vbCrLf,"<br/>")
%>
<script type="text/javascript" language="JavaScript">
var bodyDefault = '<%=strBodyDefault%>';
var txtDescription = '<%=txtDescription%>';
$(document).ready(function()
{
$("#obj_edit_editBox").focus(function()
{
if (txtDescription == bodyDefault)
{
//Do something here
}
});
});
</script>
Do something here.. How can I assign asp variable to empty i.e.,txtDescription = "".. I'm stuck up at this point..txtDescriptionis empty or null, then nothing would be ouput in theresponse.writeandvar txtDescription = ''would be written to the page.Do something?inputfield namedDescriptionand set the values in it. Then you need to submit (using aFORM POST) the values to the server. I think that you are no understanding how web development works.