Expanding rows only when button clicked

Multi tool use
Multi tool use












1















In my table i have button , when its clicked it should expanding rows and this how i navigated in my Javascripts, but my problem is when i clicked everywhere in table it will expandig rows, but i want rows expanded, when only button get clicked.



My question is how should i navigate in my JavaScript?!



JS:



$.ajax({
type: "POST",
url: "",
data: ,
success: function (result) {
$("#DIV").html('');
var rows = "";
$.each(result, function (i, e) {

rows += '<tr class="RMAJS">';
rows += '<td id="varnummer" name="varnummer">' + e.varnummer + '</td>';
rows += '<td id="Beskrivelse" name="Beskrivelse">' + e.Beskrivelse + '</td>';

rows += '<td><button type="submit" class="sendRMA">Anmod om RMA</button></td>';

rows += '</tr>';

rows += '<tr style="display:none;" class="section">';
rows += '<td>test</td>'
rows += '</tr>';

}); //End of foreach Loop

$('#ResultProduct').append(rows);

}
})


HTML:



   <table class="table">
<thead>
<tr>
<th>Varenummer</th>
<th>Beskrivelse</th>
<th></th>
</tr>
</thead>
<tbody id="ResultProduct">
<tr class="RMAJS">
<td id="varnummer" name="varnummer">61A6MAT3</td>
<td id="Beskrivelse" name="Beskrivelse">Lenovo T24</td>
<td><button type="submit" class="sendRMA">Anmod om RMA</button></td>
</tr>
<tr style="display:none;" class="section">
<td>test</td>
</tr>

<tr class="RMAJS">
<td id="varnummer" name="varnummer">AMAT3</td>
<td id="Beskrivelse" name="Beskrivelse">Dell</td>
<td><button type="submit" class="sendRMA">Anmod om RMA</button></td>
</tr>
<tr style="display:none;" class="section">
<td>test</td>
</tr>
</tbody>
</table>


And here 3 Javascripts i'll come up with:





  • The first one will expand rows not only when button clicked, but it will also expand rows when i clicked everywhere in table



    $('#ResultProduct').on("click", ".RMAJS", function () {
    $(this).next('.section').toggle("slow"); });



  • The Second & Third not going to expanding rows when i clicked on button:



    $('.sendRMA').on("click", function () {
    $(this).next('.section').toggle("slow");
    });

    $('.RMAJS').on("click", ".sendRMA", function () {
    $(this).next('.section').toggle("slow");
    });











share|improve this question



























    1















    In my table i have button , when its clicked it should expanding rows and this how i navigated in my Javascripts, but my problem is when i clicked everywhere in table it will expandig rows, but i want rows expanded, when only button get clicked.



    My question is how should i navigate in my JavaScript?!



    JS:



    $.ajax({
    type: "POST",
    url: "",
    data: ,
    success: function (result) {
    $("#DIV").html('');
    var rows = "";
    $.each(result, function (i, e) {

    rows += '<tr class="RMAJS">';
    rows += '<td id="varnummer" name="varnummer">' + e.varnummer + '</td>';
    rows += '<td id="Beskrivelse" name="Beskrivelse">' + e.Beskrivelse + '</td>';

    rows += '<td><button type="submit" class="sendRMA">Anmod om RMA</button></td>';

    rows += '</tr>';

    rows += '<tr style="display:none;" class="section">';
    rows += '<td>test</td>'
    rows += '</tr>';

    }); //End of foreach Loop

    $('#ResultProduct').append(rows);

    }
    })


    HTML:



       <table class="table">
    <thead>
    <tr>
    <th>Varenummer</th>
    <th>Beskrivelse</th>
    <th></th>
    </tr>
    </thead>
    <tbody id="ResultProduct">
    <tr class="RMAJS">
    <td id="varnummer" name="varnummer">61A6MAT3</td>
    <td id="Beskrivelse" name="Beskrivelse">Lenovo T24</td>
    <td><button type="submit" class="sendRMA">Anmod om RMA</button></td>
    </tr>
    <tr style="display:none;" class="section">
    <td>test</td>
    </tr>

    <tr class="RMAJS">
    <td id="varnummer" name="varnummer">AMAT3</td>
    <td id="Beskrivelse" name="Beskrivelse">Dell</td>
    <td><button type="submit" class="sendRMA">Anmod om RMA</button></td>
    </tr>
    <tr style="display:none;" class="section">
    <td>test</td>
    </tr>
    </tbody>
    </table>


    And here 3 Javascripts i'll come up with:





    • The first one will expand rows not only when button clicked, but it will also expand rows when i clicked everywhere in table



      $('#ResultProduct').on("click", ".RMAJS", function () {
      $(this).next('.section').toggle("slow"); });



    • The Second & Third not going to expanding rows when i clicked on button:



      $('.sendRMA').on("click", function () {
      $(this).next('.section').toggle("slow");
      });

      $('.RMAJS').on("click", ".sendRMA", function () {
      $(this).next('.section').toggle("slow");
      });











    share|improve this question

























      1












      1








      1








      In my table i have button , when its clicked it should expanding rows and this how i navigated in my Javascripts, but my problem is when i clicked everywhere in table it will expandig rows, but i want rows expanded, when only button get clicked.



      My question is how should i navigate in my JavaScript?!



      JS:



      $.ajax({
      type: "POST",
      url: "",
      data: ,
      success: function (result) {
      $("#DIV").html('');
      var rows = "";
      $.each(result, function (i, e) {

      rows += '<tr class="RMAJS">';
      rows += '<td id="varnummer" name="varnummer">' + e.varnummer + '</td>';
      rows += '<td id="Beskrivelse" name="Beskrivelse">' + e.Beskrivelse + '</td>';

      rows += '<td><button type="submit" class="sendRMA">Anmod om RMA</button></td>';

      rows += '</tr>';

      rows += '<tr style="display:none;" class="section">';
      rows += '<td>test</td>'
      rows += '</tr>';

      }); //End of foreach Loop

      $('#ResultProduct').append(rows);

      }
      })


      HTML:



         <table class="table">
      <thead>
      <tr>
      <th>Varenummer</th>
      <th>Beskrivelse</th>
      <th></th>
      </tr>
      </thead>
      <tbody id="ResultProduct">
      <tr class="RMAJS">
      <td id="varnummer" name="varnummer">61A6MAT3</td>
      <td id="Beskrivelse" name="Beskrivelse">Lenovo T24</td>
      <td><button type="submit" class="sendRMA">Anmod om RMA</button></td>
      </tr>
      <tr style="display:none;" class="section">
      <td>test</td>
      </tr>

      <tr class="RMAJS">
      <td id="varnummer" name="varnummer">AMAT3</td>
      <td id="Beskrivelse" name="Beskrivelse">Dell</td>
      <td><button type="submit" class="sendRMA">Anmod om RMA</button></td>
      </tr>
      <tr style="display:none;" class="section">
      <td>test</td>
      </tr>
      </tbody>
      </table>


      And here 3 Javascripts i'll come up with:





      • The first one will expand rows not only when button clicked, but it will also expand rows when i clicked everywhere in table



        $('#ResultProduct').on("click", ".RMAJS", function () {
        $(this).next('.section').toggle("slow"); });



      • The Second & Third not going to expanding rows when i clicked on button:



        $('.sendRMA').on("click", function () {
        $(this).next('.section').toggle("slow");
        });

        $('.RMAJS').on("click", ".sendRMA", function () {
        $(this).next('.section').toggle("slow");
        });











      share|improve this question














      In my table i have button , when its clicked it should expanding rows and this how i navigated in my Javascripts, but my problem is when i clicked everywhere in table it will expandig rows, but i want rows expanded, when only button get clicked.



      My question is how should i navigate in my JavaScript?!



      JS:



      $.ajax({
      type: "POST",
      url: "",
      data: ,
      success: function (result) {
      $("#DIV").html('');
      var rows = "";
      $.each(result, function (i, e) {

      rows += '<tr class="RMAJS">';
      rows += '<td id="varnummer" name="varnummer">' + e.varnummer + '</td>';
      rows += '<td id="Beskrivelse" name="Beskrivelse">' + e.Beskrivelse + '</td>';

      rows += '<td><button type="submit" class="sendRMA">Anmod om RMA</button></td>';

      rows += '</tr>';

      rows += '<tr style="display:none;" class="section">';
      rows += '<td>test</td>'
      rows += '</tr>';

      }); //End of foreach Loop

      $('#ResultProduct').append(rows);

      }
      })


      HTML:



         <table class="table">
      <thead>
      <tr>
      <th>Varenummer</th>
      <th>Beskrivelse</th>
      <th></th>
      </tr>
      </thead>
      <tbody id="ResultProduct">
      <tr class="RMAJS">
      <td id="varnummer" name="varnummer">61A6MAT3</td>
      <td id="Beskrivelse" name="Beskrivelse">Lenovo T24</td>
      <td><button type="submit" class="sendRMA">Anmod om RMA</button></td>
      </tr>
      <tr style="display:none;" class="section">
      <td>test</td>
      </tr>

      <tr class="RMAJS">
      <td id="varnummer" name="varnummer">AMAT3</td>
      <td id="Beskrivelse" name="Beskrivelse">Dell</td>
      <td><button type="submit" class="sendRMA">Anmod om RMA</button></td>
      </tr>
      <tr style="display:none;" class="section">
      <td>test</td>
      </tr>
      </tbody>
      </table>


      And here 3 Javascripts i'll come up with:





      • The first one will expand rows not only when button clicked, but it will also expand rows when i clicked everywhere in table



        $('#ResultProduct').on("click", ".RMAJS", function () {
        $(this).next('.section').toggle("slow"); });



      • The Second & Third not going to expanding rows when i clicked on button:



        $('.sendRMA').on("click", function () {
        $(this).next('.section').toggle("slow");
        });

        $('.RMAJS').on("click", ".sendRMA", function () {
        $(this).next('.section').toggle("slow");
        });








      javascript






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jan 3 at 9:08









      The FirstThe First

      618




      618
























          1 Answer
          1






          active

          oldest

          votes


















          0














          You are missing the closest you should not use next as next will be the next element, but your section is next to tr not next to td, so you will have to first find the tr and then next section.



          $('.sendRMA').on("click", function() {
          $(this).closest('tr').next('.section').toggle("slow");
          });





          $('.sendRMA').on("click", function() {
          $(this).closest('tr').next('.section').toggle("slow");
          });

          <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
          <table class="table">
          <thead>
          <tr>
          <th>Varenummer</th>
          <th>Beskrivelse</th>
          <th></th>
          </tr>
          </thead>
          <tbody id="ResultProduct">
          <tr class="RMAJS">
          <td id="varnummer" name="varnummer">61A6MAT3</td>
          <td id="Beskrivelse" name="Beskrivelse">Lenovo T24</td>
          <td><button type="submit" class="sendRMA">Anmod om RMA</button></td>
          </tr>
          <tr style="display:none;" class="section">
          <td>test</td>
          </tr>

          <tr class="RMAJS">
          <td id="varnummer" name="varnummer">AMAT3</td>
          <td id="Beskrivelse" name="Beskrivelse">Dell</td>
          <td><button type="submit" class="sendRMA">Anmod om RMA</button></td>
          </tr>
          <tr style="display:none;" class="section">
          <td>test</td>
          </tr>
          </tbody>
          </table>








          share|improve this answer
























          • I just tried but no luck - its not going to expanding rows. $('.sendRMA').on("click", function() { $(this).closest('tr').next('.section').toggle("slow"); });

            – The First
            Jan 3 at 9:26











          • @edit your question add full code

            – Just code
            Jan 3 at 9:29













          • I posted the full code :)

            – The First
            Jan 3 at 9:30






          • 1





            @TheFirst because you are loading the tables dynamically, wrap this event in function and call that function after your $('#ResultProduct').append(rows);

            – Just code
            Jan 3 at 9:47








          • 1





            Yess , it works :)

            – The First
            Jan 3 at 9:51











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54019181%2fexpanding-rows-only-when-button-clicked%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          You are missing the closest you should not use next as next will be the next element, but your section is next to tr not next to td, so you will have to first find the tr and then next section.



          $('.sendRMA').on("click", function() {
          $(this).closest('tr').next('.section').toggle("slow");
          });





          $('.sendRMA').on("click", function() {
          $(this).closest('tr').next('.section').toggle("slow");
          });

          <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
          <table class="table">
          <thead>
          <tr>
          <th>Varenummer</th>
          <th>Beskrivelse</th>
          <th></th>
          </tr>
          </thead>
          <tbody id="ResultProduct">
          <tr class="RMAJS">
          <td id="varnummer" name="varnummer">61A6MAT3</td>
          <td id="Beskrivelse" name="Beskrivelse">Lenovo T24</td>
          <td><button type="submit" class="sendRMA">Anmod om RMA</button></td>
          </tr>
          <tr style="display:none;" class="section">
          <td>test</td>
          </tr>

          <tr class="RMAJS">
          <td id="varnummer" name="varnummer">AMAT3</td>
          <td id="Beskrivelse" name="Beskrivelse">Dell</td>
          <td><button type="submit" class="sendRMA">Anmod om RMA</button></td>
          </tr>
          <tr style="display:none;" class="section">
          <td>test</td>
          </tr>
          </tbody>
          </table>








          share|improve this answer
























          • I just tried but no luck - its not going to expanding rows. $('.sendRMA').on("click", function() { $(this).closest('tr').next('.section').toggle("slow"); });

            – The First
            Jan 3 at 9:26











          • @edit your question add full code

            – Just code
            Jan 3 at 9:29













          • I posted the full code :)

            – The First
            Jan 3 at 9:30






          • 1





            @TheFirst because you are loading the tables dynamically, wrap this event in function and call that function after your $('#ResultProduct').append(rows);

            – Just code
            Jan 3 at 9:47








          • 1





            Yess , it works :)

            – The First
            Jan 3 at 9:51
















          0














          You are missing the closest you should not use next as next will be the next element, but your section is next to tr not next to td, so you will have to first find the tr and then next section.



          $('.sendRMA').on("click", function() {
          $(this).closest('tr').next('.section').toggle("slow");
          });





          $('.sendRMA').on("click", function() {
          $(this).closest('tr').next('.section').toggle("slow");
          });

          <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
          <table class="table">
          <thead>
          <tr>
          <th>Varenummer</th>
          <th>Beskrivelse</th>
          <th></th>
          </tr>
          </thead>
          <tbody id="ResultProduct">
          <tr class="RMAJS">
          <td id="varnummer" name="varnummer">61A6MAT3</td>
          <td id="Beskrivelse" name="Beskrivelse">Lenovo T24</td>
          <td><button type="submit" class="sendRMA">Anmod om RMA</button></td>
          </tr>
          <tr style="display:none;" class="section">
          <td>test</td>
          </tr>

          <tr class="RMAJS">
          <td id="varnummer" name="varnummer">AMAT3</td>
          <td id="Beskrivelse" name="Beskrivelse">Dell</td>
          <td><button type="submit" class="sendRMA">Anmod om RMA</button></td>
          </tr>
          <tr style="display:none;" class="section">
          <td>test</td>
          </tr>
          </tbody>
          </table>








          share|improve this answer
























          • I just tried but no luck - its not going to expanding rows. $('.sendRMA').on("click", function() { $(this).closest('tr').next('.section').toggle("slow"); });

            – The First
            Jan 3 at 9:26











          • @edit your question add full code

            – Just code
            Jan 3 at 9:29













          • I posted the full code :)

            – The First
            Jan 3 at 9:30






          • 1





            @TheFirst because you are loading the tables dynamically, wrap this event in function and call that function after your $('#ResultProduct').append(rows);

            – Just code
            Jan 3 at 9:47








          • 1





            Yess , it works :)

            – The First
            Jan 3 at 9:51














          0












          0








          0







          You are missing the closest you should not use next as next will be the next element, but your section is next to tr not next to td, so you will have to first find the tr and then next section.



          $('.sendRMA').on("click", function() {
          $(this).closest('tr').next('.section').toggle("slow");
          });





          $('.sendRMA').on("click", function() {
          $(this).closest('tr').next('.section').toggle("slow");
          });

          <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
          <table class="table">
          <thead>
          <tr>
          <th>Varenummer</th>
          <th>Beskrivelse</th>
          <th></th>
          </tr>
          </thead>
          <tbody id="ResultProduct">
          <tr class="RMAJS">
          <td id="varnummer" name="varnummer">61A6MAT3</td>
          <td id="Beskrivelse" name="Beskrivelse">Lenovo T24</td>
          <td><button type="submit" class="sendRMA">Anmod om RMA</button></td>
          </tr>
          <tr style="display:none;" class="section">
          <td>test</td>
          </tr>

          <tr class="RMAJS">
          <td id="varnummer" name="varnummer">AMAT3</td>
          <td id="Beskrivelse" name="Beskrivelse">Dell</td>
          <td><button type="submit" class="sendRMA">Anmod om RMA</button></td>
          </tr>
          <tr style="display:none;" class="section">
          <td>test</td>
          </tr>
          </tbody>
          </table>








          share|improve this answer













          You are missing the closest you should not use next as next will be the next element, but your section is next to tr not next to td, so you will have to first find the tr and then next section.



          $('.sendRMA').on("click", function() {
          $(this).closest('tr').next('.section').toggle("slow");
          });





          $('.sendRMA').on("click", function() {
          $(this).closest('tr').next('.section').toggle("slow");
          });

          <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
          <table class="table">
          <thead>
          <tr>
          <th>Varenummer</th>
          <th>Beskrivelse</th>
          <th></th>
          </tr>
          </thead>
          <tbody id="ResultProduct">
          <tr class="RMAJS">
          <td id="varnummer" name="varnummer">61A6MAT3</td>
          <td id="Beskrivelse" name="Beskrivelse">Lenovo T24</td>
          <td><button type="submit" class="sendRMA">Anmod om RMA</button></td>
          </tr>
          <tr style="display:none;" class="section">
          <td>test</td>
          </tr>

          <tr class="RMAJS">
          <td id="varnummer" name="varnummer">AMAT3</td>
          <td id="Beskrivelse" name="Beskrivelse">Dell</td>
          <td><button type="submit" class="sendRMA">Anmod om RMA</button></td>
          </tr>
          <tr style="display:none;" class="section">
          <td>test</td>
          </tr>
          </tbody>
          </table>








          $('.sendRMA').on("click", function() {
          $(this).closest('tr').next('.section').toggle("slow");
          });

          <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
          <table class="table">
          <thead>
          <tr>
          <th>Varenummer</th>
          <th>Beskrivelse</th>
          <th></th>
          </tr>
          </thead>
          <tbody id="ResultProduct">
          <tr class="RMAJS">
          <td id="varnummer" name="varnummer">61A6MAT3</td>
          <td id="Beskrivelse" name="Beskrivelse">Lenovo T24</td>
          <td><button type="submit" class="sendRMA">Anmod om RMA</button></td>
          </tr>
          <tr style="display:none;" class="section">
          <td>test</td>
          </tr>

          <tr class="RMAJS">
          <td id="varnummer" name="varnummer">AMAT3</td>
          <td id="Beskrivelse" name="Beskrivelse">Dell</td>
          <td><button type="submit" class="sendRMA">Anmod om RMA</button></td>
          </tr>
          <tr style="display:none;" class="section">
          <td>test</td>
          </tr>
          </tbody>
          </table>





          $('.sendRMA').on("click", function() {
          $(this).closest('tr').next('.section').toggle("slow");
          });

          <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
          <table class="table">
          <thead>
          <tr>
          <th>Varenummer</th>
          <th>Beskrivelse</th>
          <th></th>
          </tr>
          </thead>
          <tbody id="ResultProduct">
          <tr class="RMAJS">
          <td id="varnummer" name="varnummer">61A6MAT3</td>
          <td id="Beskrivelse" name="Beskrivelse">Lenovo T24</td>
          <td><button type="submit" class="sendRMA">Anmod om RMA</button></td>
          </tr>
          <tr style="display:none;" class="section">
          <td>test</td>
          </tr>

          <tr class="RMAJS">
          <td id="varnummer" name="varnummer">AMAT3</td>
          <td id="Beskrivelse" name="Beskrivelse">Dell</td>
          <td><button type="submit" class="sendRMA">Anmod om RMA</button></td>
          </tr>
          <tr style="display:none;" class="section">
          <td>test</td>
          </tr>
          </tbody>
          </table>






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jan 3 at 9:14









          Just codeJust code

          10.5k53267




          10.5k53267













          • I just tried but no luck - its not going to expanding rows. $('.sendRMA').on("click", function() { $(this).closest('tr').next('.section').toggle("slow"); });

            – The First
            Jan 3 at 9:26











          • @edit your question add full code

            – Just code
            Jan 3 at 9:29













          • I posted the full code :)

            – The First
            Jan 3 at 9:30






          • 1





            @TheFirst because you are loading the tables dynamically, wrap this event in function and call that function after your $('#ResultProduct').append(rows);

            – Just code
            Jan 3 at 9:47








          • 1





            Yess , it works :)

            – The First
            Jan 3 at 9:51



















          • I just tried but no luck - its not going to expanding rows. $('.sendRMA').on("click", function() { $(this).closest('tr').next('.section').toggle("slow"); });

            – The First
            Jan 3 at 9:26











          • @edit your question add full code

            – Just code
            Jan 3 at 9:29













          • I posted the full code :)

            – The First
            Jan 3 at 9:30






          • 1





            @TheFirst because you are loading the tables dynamically, wrap this event in function and call that function after your $('#ResultProduct').append(rows);

            – Just code
            Jan 3 at 9:47








          • 1





            Yess , it works :)

            – The First
            Jan 3 at 9:51

















          I just tried but no luck - its not going to expanding rows. $('.sendRMA').on("click", function() { $(this).closest('tr').next('.section').toggle("slow"); });

          – The First
          Jan 3 at 9:26





          I just tried but no luck - its not going to expanding rows. $('.sendRMA').on("click", function() { $(this).closest('tr').next('.section').toggle("slow"); });

          – The First
          Jan 3 at 9:26













          @edit your question add full code

          – Just code
          Jan 3 at 9:29







          @edit your question add full code

          – Just code
          Jan 3 at 9:29















          I posted the full code :)

          – The First
          Jan 3 at 9:30





          I posted the full code :)

          – The First
          Jan 3 at 9:30




          1




          1





          @TheFirst because you are loading the tables dynamically, wrap this event in function and call that function after your $('#ResultProduct').append(rows);

          – Just code
          Jan 3 at 9:47







          @TheFirst because you are loading the tables dynamically, wrap this event in function and call that function after your $('#ResultProduct').append(rows);

          – Just code
          Jan 3 at 9:47






          1




          1





          Yess , it works :)

          – The First
          Jan 3 at 9:51





          Yess , it works :)

          – The First
          Jan 3 at 9:51




















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54019181%2fexpanding-rows-only-when-button-clicked%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          ZBJ fPWE493JU,VG5,JKM9smZPoxh6OkhG7XFK5mNBmggo2 05ByVPLFjhne6Y,DqyxUtW11jyXZh,Y4uy89V ZMpJdlh0 aG5C2RS0
          bjw99GCB5aVOmaTcxUqt jII iK6dBc,tmTwistM

          Popular posts from this blog

          Monofisismo

          Angular Downloading a file using contenturl with Basic Authentication

          Olmecas