<bdo id='rB0c5'></bdo><ul id='rB0c5'></ul>
  1. <small id='rB0c5'></small><noframes id='rB0c5'>

  2. <tfoot id='rB0c5'></tfoot>

  3. <i id='rB0c5'><tr id='rB0c5'><dt id='rB0c5'><q id='rB0c5'><span id='rB0c5'><b id='rB0c5'><form id='rB0c5'><ins id='rB0c5'></ins><ul id='rB0c5'></ul><sub id='rB0c5'></sub></form><legend id='rB0c5'></legend><bdo id='rB0c5'><pre id='rB0c5'><center id='rB0c5'></center></pre></bdo></b><th id='rB0c5'></th></span></q></dt></tr></i><div id='rB0c5'><tfoot id='rB0c5'></tfoot><dl id='rB0c5'><fieldset id='rB0c5'></fieldset></dl></div>

      <legend id='rB0c5'><style id='rB0c5'><dir id='rB0c5'><q id='rB0c5'></q></dir></style></legend>

      动态创建 div 时如何显示/隐藏 div

      how to show/hide divs when divs are created dynamically(动态创建 div 时如何显示/隐藏 div)
        <bdo id='1ElB8'></bdo><ul id='1ElB8'></ul>

        1. <small id='1ElB8'></small><noframes id='1ElB8'>

        2. <tfoot id='1ElB8'></tfoot>

              <tbody id='1ElB8'></tbody>
                <legend id='1ElB8'><style id='1ElB8'><dir id='1ElB8'><q id='1ElB8'></q></dir></style></legend>
                <i id='1ElB8'><tr id='1ElB8'><dt id='1ElB8'><q id='1ElB8'><span id='1ElB8'><b id='1ElB8'><form id='1ElB8'><ins id='1ElB8'></ins><ul id='1ElB8'></ul><sub id='1ElB8'></sub></form><legend id='1ElB8'></legend><bdo id='1ElB8'><pre id='1ElB8'><center id='1ElB8'></center></pre></bdo></b><th id='1ElB8'></th></span></q></dt></tr></i><div id='1ElB8'><tfoot id='1ElB8'></tfoot><dl id='1ElB8'><fieldset id='1ElB8'></fieldset></dl></div>
                本文介绍了动态创建 div 时如何显示/隐藏 div的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我正在开发具有两个级别的评论重播评论系统,我在如何显示和隐藏 div 方面遇到了问题 ..,因为它的 id 是不同的 ..,我尝试了一种方式:

                I am developing comment systems with two level of replay to the comments and I have a problem with how to show and hide divs .., because it's id's are different .., I tried in a way with:

                <button>replayl</button>
                
                <span style="display:none;">
                   <form action='' method='post' name="addcmt" onsubmit="return validate()">
                        <textarea rows="1" cols="60" name='textarea1' id='textarea1' onKeyDown="limitText(this.form.textarea1,this.form.countdown,300);" 
                                                  onKeyUp="limitText(this.form.textarea1,this.form.countdown,300);">
                       </textarea>
                       <br>
                       <br>
                       <input type="hidden" name="level1" id="level1" value="commtlevel1" />
                       <input id='addcmt' type='submit' value='Add reply' name='submit'/> 
                   </form>
                </span>
                

                和jquery:

                 <script>
                     $("button").click(function () {
                        $("span").show();                 
                     });
                </script>
                

                但是这样当我点击回复按钮时,它会显示所有的 span 标签内容......,我想知道我如何只显示一个标签或一种完成工作的方式.

                but this way when I click reply button it shows all the span tag contente.., I wanna kow how I show one tag only or a way to my work done.

                推荐答案

                编辑后的问题,我建议你使用 div 而不是 span (因为 display inline vs block).

                After edited question, i suggest you use div instead of span (because of display inline vs block).

                $("button").click(function () {
                    $(".myform").toggle('slow');
                });
                

                可以按照您的意愿完成工作.这是结果.

                would do the job how you want.Here is the result.

                这篇关于动态创建 div 时如何显示/隐藏 div的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                Appending GET parameters to URL from lt;formgt; action(将 GET 参数附加到来自 lt;formgt; 的 URL行动)
                Forcing quot;Save Asquot; dialog via jQuery GET(强制“另存为通过 jQuery GET 对话框)
                PHP - get certain word from string(PHP - 从字符串中获取某个单词)
                How to debug a get request in php using curl(如何使用 curl 在 php 中调试 get 请求)
                get a # from a url in php(从 php 中的 url 获取 #)
                PHP - include() file not working when variables are put in url?(PHP - 将变量放入 url 时,include() 文件不起作用?)

                    <bdo id='1MVCL'></bdo><ul id='1MVCL'></ul>

                    <small id='1MVCL'></small><noframes id='1MVCL'>

                      <tbody id='1MVCL'></tbody>
                  • <tfoot id='1MVCL'></tfoot>
                    <i id='1MVCL'><tr id='1MVCL'><dt id='1MVCL'><q id='1MVCL'><span id='1MVCL'><b id='1MVCL'><form id='1MVCL'><ins id='1MVCL'></ins><ul id='1MVCL'></ul><sub id='1MVCL'></sub></form><legend id='1MVCL'></legend><bdo id='1MVCL'><pre id='1MVCL'><center id='1MVCL'></center></pre></bdo></b><th id='1MVCL'></th></span></q></dt></tr></i><div id='1MVCL'><tfoot id='1MVCL'></tfoot><dl id='1MVCL'><fieldset id='1MVCL'></fieldset></dl></div>

                          <legend id='1MVCL'><style id='1MVCL'><dir id='1MVCL'><q id='1MVCL'></q></dir></style></legend>