How to make the box open without having to load the text

Posted on

Question :

I have a problem and I can not remove the click to open the text box, I want to leave the text box always open and mandatory, how do I do this?

I think the code is this:

html += '<div class="qstxt">
             <span onclick="$('#startMatter').toggle();"   
                   title="Add a description of the question" class="q_editor jcmr-small" 
                   style="visibility:visible;margin-left:0;">Add a description of the question ยป
             <textarea class="glotxtclass jcmr-hide " id="startMatter" style="margin-top:10px;" 
                       name="question_detail" title="Additional issue  Information...">


Answer :

Use the onload event, example:

<script type="text/javascript">
      $(document).ready(function() {
         $('body').onload(function() {
            return false;

If there is a div to activate:

<script type="text/javascript">
    $(document).ready(function () {

        $("q_editor jcmr-small").onload(function () {


Leave a Reply

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