Note that there are some explanatory texts on larger screens.

plurals
  1. POClear text area
    text
    copied!<p>In Onselect event I have script:</p> <pre><code>$("#vinanghinguyen_images_bbocde").val(''); $("#vinanghinguyen_images_bbocde").val(vinanghinguyen_final_bbcode); </code></pre> <p>I want clear text area id="vinanghinguyen_images_bbocde" before add value to it. but textarea add add add add and value and not clear. I want clear it before add value</p> <p>I use uploadify here is my function</p> <pre><code>&lt;script type="text/javascript"&gt; $(document).ready(function() { vinanghinguyen_bbcode=''; vinanghinguyen_final_bbcode=''; vinanghinguyen_link=''; vinanghinguyen_final_derect_link=''; response = ''; $('#file_upload').uploadify({ 'uploader' : '{SITE_FULL_URL}/uploadify/uploadify.swf', 'script' : '{SITE_FULL_URL}/uploadify/uploadify.php', 'cancelImg' : '{SITE_FULL_URL}/uploadify/cancel.png', 'folder' : 'data/picture_upload/2011', 'auto' : false, 'multi' : true, 'buttonText' : '', 'onComplete' : function(event,ID,fileObj,response,data) { vinanghinguyen_bbcode='[IMG]'+'http://cnttvnn.com'+response+'[/IMG]'+'\n'; vinanghinguyen_final_bbcode=vinanghinguyen_final_bbcode+vinanghinguyen_bbcode; vinanghinguyen_derect_link='http://cnttvnn.com'+response+'\n'; vinanghinguyen_final_derect_link=vinanghinguyen_final_derect_link+vinanghinguyen_derect_link; $("#vinanghinguyen_images_bbocde").val('').val(vinanghinguyen_final_bbcode); // $("#vinanghinguyen_images_derect_link").val(vinanghinguyen_final_derect_link); $("#vinanghinguyen_result").show(); $(".uploadifyQueue").height(5); }, 'onSelect' : function(event,ID,fileObj) { $("#vinanghinguyen_images_bbocde").val(''); $("#vinanghinguyen_result").hide(); $(".uploadifyQueue").height(315); }, }); }); &lt;/script&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload