Jquery TR sortable, for seperate accordianIs there an “exists” function for jQuery?Add table row in jQueryHow do I check if an element is hidden in jQuery?Setting “checked” for a checkbox with jQuery?Abort Ajax requests using jQueryHow to check whether a checkbox is checked in jQuery?Disable/enable an input with jQuery?How can I refresh a page with jQuery?jQuery scroll to element“Thinking in AngularJS” if I have a jQuery background?

Gas pipes - why does gas burn "outwards?"

What is the use of FullForm in Mathematica?

Will replacing a fake visa with a different fake visa cause me problems when applying for a legal study permit?

How seriously should I take a CBP interview where I was told I have a red flag and could only stay for 30 days?

Do ibuprofen or paracetamol cause hearing loss?

Were Roman public roads build by private companies?

How does Vivi differ from other Black Mages?

How can a resurrection system prevent the cheapening of death?

Creating a Master Image to roll out to 30 new Machines Licensing Issues

Which ping implementation is Cygwin using?

Are there any instances of members of different Hogwarts houses coupling up and marrying each other?

Contract Employer Keeps Asking for Small Things Without Pay

Writing a love interest for my hero

How would a village use its river that it shares with another village downstream?

Relevance of the Resurrection

Do any aircraft carry boats?

Why did it become so much more expensive to start a university?

Renewed US passport, did not receive expired US passport

Variable Prefixes and Suffixes

Have there been any countries that voted themselves out of existence?

Are there take-over requests from autopilots?

Are the definite and indefinite integrals actually two different things? Where is the flaw in my understanding?

Are programming languages necessary/useful for operations research practitioner?

Can I use ratchet straps to lift a dolly into a truck bed?



Jquery TR sortable, for seperate accordian


Is there an “exists” function for jQuery?Add table row in jQueryHow do I check if an element is hidden in jQuery?Setting “checked” for a checkbox with jQuery?Abort Ajax requests using jQueryHow to check whether a checkbox is checked in jQuery?Disable/enable an input with jQuery?How can I refresh a page with jQuery?jQuery scroll to element“Thinking in AngularJS” if I have a jQuery background?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








3















I use accordion in which i use table. In table i get different locations in it. I write a script to re order the location. In Some accordion the locations is same so if i reorder the location in one accordion that changes the all accordion that have same locations. i want if i reorder the location in one accordion it only change in that accordion not in other accordion which have same locations in it. Please help me. Here is my code.



Here is the code of Script:



<script>
var fixHelperModified = function(e, tr)
var $originals = tr.children();
var $helper = tr.clone();
// console.log($helper)
$helper.children().each(function(index)
$(this).width($originals.eq(index).width())
);
return $helper;
,
updateIndex = function(e, ui)
$('td.index', ui.item.parent()).each(function (i)
$(this).html(i + 1);
);
;

$("#sort tbody").sortable(
helper: fixHelperModified,
stop: updateIndex,
update: function(event, ui)
var list_sortable = $(this).sortable('toArray').toString();
// change order in the database using Ajax
$.ajax(
url: 'url('admin/locations/updateOrder')',
type: 'POST',
data: list_order:list_sortable,_token:'csrf_token()',
success: function(data)
//finished

);

);
</script>


Here is the code of my index.blade.php



 @extends('admin.layout')

@section('css')
<link href="//cdnjs.cloudflare.com/ajax/libs/x-editable/1.5.0/bootstrap3-
editable/css/bootstrap-editable.css" rel="stylesheet"/>
<link rel="stylesheet" href
="https://cdn.datatables.net/1.10.13/css/dataTables.bootstrap.min.css">
<link rel="stylesheet" href ="https://cdn.datatables.net/responsive/2.1.1/css/responsive.bootstrap.min.css ">
@endsection

@section('content')
<h1 class="page-header">Locations page</h1>

<div class="clearfix">
<div class="pull-right" style="margin-bottom: 5px">
<a href=" route('locations.create') " class="btn btn-success"><i class="fa fa-plus" aria-hidden="true"></i> Create Location</a>
</div>
</div>

@if(count($trails) > 0)
<div class="panel-group" id="accordion" style="margin-top: 10px;">
<?php $count = 0;?>
@foreach($trails as $getTrail)
<div class="panel panel-default">
<div class="panel-heading">
<a data-toggle="collapse" data-parent="#accordion" href="#collapse$getTrail->trail_id" style="text-decoration: none !important;">
<h4 class="panel-title">
<span>
++$count:
</span>
ucwords($getTrail->trail_title)
<span class="label bg-primary pull-right" style="padding-top: 3px;">
Total Locations: count($getTrail->location)
</span>
</h4>
</a>
</div>
<div id="collapse$getTrail->trail_id" class="panel-collapse collapse @if($count == 1) in @endif">
<div class="panel-body">
<div class="table-responsive">
<table id="sort" class="example table table-striped dt-responsive" cellspacing="0" width="100%">
<thead>
<tr>
<th>Id</th>
<th>Title</th>
<th>Rewards Points</th>
<th>Map options</th>
<th>Created At</th>
<th>Updated At</th>
<th></th>
</tr>
</thead>
<tbody>
@foreach($getTrail->location as $location)
<tr id=" $location->id " style="cursor: move;">
<td> $location->id </td>
<td>
$location->title <br>
<a href=" route('locations.hints', ['id' => $location->id]) " class="btn btn-primary" style="margin-top: 5px">Location Hints</a>
</td>
<td> $location->rewards_points </td>
<td> $location->latitude $location->longitude ,<br/>radius: $location->radius </td>
<td> $location->created_at->date </td>
-- <td> $location->location_order </td>--
<td> $location->updated_at->date </td>
<td>
<a title=" $location->title " href=" route('locations.show', ['id' => $location->id]) ">
<i class="fa fa-eye" aria-hidden="true"></i>
</a>
<a title=" $location->title " href=" route('locations.edit', ['id' => $location->id]) ">
<i class="fa fa-pencil" aria-hidden="true"></i>
</a>
<a href="#" data-toggle="modal" data-target="#mySmallModalLabel $location->id " data-location=" $location->id ">
<i class="fa fa-trash" aria-hidden="true"></i>
</a>
<div class="modal fade small_modal_delete" tabindex="-1" role="dialog" id="mySmallModalLabel $location->id ">
<div class="modal-dialog modal-sm">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
<h4 class="modal-title" id="myModalLabel">Deleting the location</h4>
</div>
<div class="modal-body">
Are you sure want to delete this location?
<form action="url('admin/locations/'.$location->id)" method="POST">
<input name="_method" type="hidden" value="DELETE" />
csrf_field()
<button class="btn btn-default" type="submit">Delete</button>
</form>
</div>
</div>
</div>
</div>
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
</div>
@endforeach
</div>
@else
<div class="col-lg-12 alert alert-warning" style="margin-top: 10px;">
No Locations found
</div>
@endif


Here is the code of controller



public function updateOrder()
// get the list of items id separated by cama (,)
$list_order = $_POST['list_order'];

// convert the string list to an array
$list = explode(',' , $list_order);
$i = 1 ;
foreach($list as $id)
Location::whereId($id)->update(['location_order'=>$i]);
$i++ ;











share|improve this question






























    3















    I use accordion in which i use table. In table i get different locations in it. I write a script to re order the location. In Some accordion the locations is same so if i reorder the location in one accordion that changes the all accordion that have same locations. i want if i reorder the location in one accordion it only change in that accordion not in other accordion which have same locations in it. Please help me. Here is my code.



    Here is the code of Script:



    <script>
    var fixHelperModified = function(e, tr)
    var $originals = tr.children();
    var $helper = tr.clone();
    // console.log($helper)
    $helper.children().each(function(index)
    $(this).width($originals.eq(index).width())
    );
    return $helper;
    ,
    updateIndex = function(e, ui)
    $('td.index', ui.item.parent()).each(function (i)
    $(this).html(i + 1);
    );
    ;

    $("#sort tbody").sortable(
    helper: fixHelperModified,
    stop: updateIndex,
    update: function(event, ui)
    var list_sortable = $(this).sortable('toArray').toString();
    // change order in the database using Ajax
    $.ajax(
    url: 'url('admin/locations/updateOrder')',
    type: 'POST',
    data: list_order:list_sortable,_token:'csrf_token()',
    success: function(data)
    //finished

    );

    );
    </script>


    Here is the code of my index.blade.php



     @extends('admin.layout')

    @section('css')
    <link href="//cdnjs.cloudflare.com/ajax/libs/x-editable/1.5.0/bootstrap3-
    editable/css/bootstrap-editable.css" rel="stylesheet"/>
    <link rel="stylesheet" href
    ="https://cdn.datatables.net/1.10.13/css/dataTables.bootstrap.min.css">
    <link rel="stylesheet" href ="https://cdn.datatables.net/responsive/2.1.1/css/responsive.bootstrap.min.css ">
    @endsection

    @section('content')
    <h1 class="page-header">Locations page</h1>

    <div class="clearfix">
    <div class="pull-right" style="margin-bottom: 5px">
    <a href=" route('locations.create') " class="btn btn-success"><i class="fa fa-plus" aria-hidden="true"></i> Create Location</a>
    </div>
    </div>

    @if(count($trails) > 0)
    <div class="panel-group" id="accordion" style="margin-top: 10px;">
    <?php $count = 0;?>
    @foreach($trails as $getTrail)
    <div class="panel panel-default">
    <div class="panel-heading">
    <a data-toggle="collapse" data-parent="#accordion" href="#collapse$getTrail->trail_id" style="text-decoration: none !important;">
    <h4 class="panel-title">
    <span>
    ++$count:
    </span>
    ucwords($getTrail->trail_title)
    <span class="label bg-primary pull-right" style="padding-top: 3px;">
    Total Locations: count($getTrail->location)
    </span>
    </h4>
    </a>
    </div>
    <div id="collapse$getTrail->trail_id" class="panel-collapse collapse @if($count == 1) in @endif">
    <div class="panel-body">
    <div class="table-responsive">
    <table id="sort" class="example table table-striped dt-responsive" cellspacing="0" width="100%">
    <thead>
    <tr>
    <th>Id</th>
    <th>Title</th>
    <th>Rewards Points</th>
    <th>Map options</th>
    <th>Created At</th>
    <th>Updated At</th>
    <th></th>
    </tr>
    </thead>
    <tbody>
    @foreach($getTrail->location as $location)
    <tr id=" $location->id " style="cursor: move;">
    <td> $location->id </td>
    <td>
    $location->title <br>
    <a href=" route('locations.hints', ['id' => $location->id]) " class="btn btn-primary" style="margin-top: 5px">Location Hints</a>
    </td>
    <td> $location->rewards_points </td>
    <td> $location->latitude $location->longitude ,<br/>radius: $location->radius </td>
    <td> $location->created_at->date </td>
    -- <td> $location->location_order </td>--
    <td> $location->updated_at->date </td>
    <td>
    <a title=" $location->title " href=" route('locations.show', ['id' => $location->id]) ">
    <i class="fa fa-eye" aria-hidden="true"></i>
    </a>
    <a title=" $location->title " href=" route('locations.edit', ['id' => $location->id]) ">
    <i class="fa fa-pencil" aria-hidden="true"></i>
    </a>
    <a href="#" data-toggle="modal" data-target="#mySmallModalLabel $location->id " data-location=" $location->id ">
    <i class="fa fa-trash" aria-hidden="true"></i>
    </a>
    <div class="modal fade small_modal_delete" tabindex="-1" role="dialog" id="mySmallModalLabel $location->id ">
    <div class="modal-dialog modal-sm">
    <div class="modal-content">
    <div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
    <h4 class="modal-title" id="myModalLabel">Deleting the location</h4>
    </div>
    <div class="modal-body">
    Are you sure want to delete this location?
    <form action="url('admin/locations/'.$location->id)" method="POST">
    <input name="_method" type="hidden" value="DELETE" />
    csrf_field()
    <button class="btn btn-default" type="submit">Delete</button>
    </form>
    </div>
    </div>
    </div>
    </div>
    </td>
    </tr>
    @endforeach
    </tbody>
    </table>
    </div>
    </div>
    </div>
    </div>
    @endforeach
    </div>
    @else
    <div class="col-lg-12 alert alert-warning" style="margin-top: 10px;">
    No Locations found
    </div>
    @endif


    Here is the code of controller



    public function updateOrder()
    // get the list of items id separated by cama (,)
    $list_order = $_POST['list_order'];

    // convert the string list to an array
    $list = explode(',' , $list_order);
    $i = 1 ;
    foreach($list as $id)
    Location::whereId($id)->update(['location_order'=>$i]);
    $i++ ;











    share|improve this question


























      3












      3








      3








      I use accordion in which i use table. In table i get different locations in it. I write a script to re order the location. In Some accordion the locations is same so if i reorder the location in one accordion that changes the all accordion that have same locations. i want if i reorder the location in one accordion it only change in that accordion not in other accordion which have same locations in it. Please help me. Here is my code.



      Here is the code of Script:



      <script>
      var fixHelperModified = function(e, tr)
      var $originals = tr.children();
      var $helper = tr.clone();
      // console.log($helper)
      $helper.children().each(function(index)
      $(this).width($originals.eq(index).width())
      );
      return $helper;
      ,
      updateIndex = function(e, ui)
      $('td.index', ui.item.parent()).each(function (i)
      $(this).html(i + 1);
      );
      ;

      $("#sort tbody").sortable(
      helper: fixHelperModified,
      stop: updateIndex,
      update: function(event, ui)
      var list_sortable = $(this).sortable('toArray').toString();
      // change order in the database using Ajax
      $.ajax(
      url: 'url('admin/locations/updateOrder')',
      type: 'POST',
      data: list_order:list_sortable,_token:'csrf_token()',
      success: function(data)
      //finished

      );

      );
      </script>


      Here is the code of my index.blade.php



       @extends('admin.layout')

      @section('css')
      <link href="//cdnjs.cloudflare.com/ajax/libs/x-editable/1.5.0/bootstrap3-
      editable/css/bootstrap-editable.css" rel="stylesheet"/>
      <link rel="stylesheet" href
      ="https://cdn.datatables.net/1.10.13/css/dataTables.bootstrap.min.css">
      <link rel="stylesheet" href ="https://cdn.datatables.net/responsive/2.1.1/css/responsive.bootstrap.min.css ">
      @endsection

      @section('content')
      <h1 class="page-header">Locations page</h1>

      <div class="clearfix">
      <div class="pull-right" style="margin-bottom: 5px">
      <a href=" route('locations.create') " class="btn btn-success"><i class="fa fa-plus" aria-hidden="true"></i> Create Location</a>
      </div>
      </div>

      @if(count($trails) > 0)
      <div class="panel-group" id="accordion" style="margin-top: 10px;">
      <?php $count = 0;?>
      @foreach($trails as $getTrail)
      <div class="panel panel-default">
      <div class="panel-heading">
      <a data-toggle="collapse" data-parent="#accordion" href="#collapse$getTrail->trail_id" style="text-decoration: none !important;">
      <h4 class="panel-title">
      <span>
      ++$count:
      </span>
      ucwords($getTrail->trail_title)
      <span class="label bg-primary pull-right" style="padding-top: 3px;">
      Total Locations: count($getTrail->location)
      </span>
      </h4>
      </a>
      </div>
      <div id="collapse$getTrail->trail_id" class="panel-collapse collapse @if($count == 1) in @endif">
      <div class="panel-body">
      <div class="table-responsive">
      <table id="sort" class="example table table-striped dt-responsive" cellspacing="0" width="100%">
      <thead>
      <tr>
      <th>Id</th>
      <th>Title</th>
      <th>Rewards Points</th>
      <th>Map options</th>
      <th>Created At</th>
      <th>Updated At</th>
      <th></th>
      </tr>
      </thead>
      <tbody>
      @foreach($getTrail->location as $location)
      <tr id=" $location->id " style="cursor: move;">
      <td> $location->id </td>
      <td>
      $location->title <br>
      <a href=" route('locations.hints', ['id' => $location->id]) " class="btn btn-primary" style="margin-top: 5px">Location Hints</a>
      </td>
      <td> $location->rewards_points </td>
      <td> $location->latitude $location->longitude ,<br/>radius: $location->radius </td>
      <td> $location->created_at->date </td>
      -- <td> $location->location_order </td>--
      <td> $location->updated_at->date </td>
      <td>
      <a title=" $location->title " href=" route('locations.show', ['id' => $location->id]) ">
      <i class="fa fa-eye" aria-hidden="true"></i>
      </a>
      <a title=" $location->title " href=" route('locations.edit', ['id' => $location->id]) ">
      <i class="fa fa-pencil" aria-hidden="true"></i>
      </a>
      <a href="#" data-toggle="modal" data-target="#mySmallModalLabel $location->id " data-location=" $location->id ">
      <i class="fa fa-trash" aria-hidden="true"></i>
      </a>
      <div class="modal fade small_modal_delete" tabindex="-1" role="dialog" id="mySmallModalLabel $location->id ">
      <div class="modal-dialog modal-sm">
      <div class="modal-content">
      <div class="modal-header">
      <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
      <h4 class="modal-title" id="myModalLabel">Deleting the location</h4>
      </div>
      <div class="modal-body">
      Are you sure want to delete this location?
      <form action="url('admin/locations/'.$location->id)" method="POST">
      <input name="_method" type="hidden" value="DELETE" />
      csrf_field()
      <button class="btn btn-default" type="submit">Delete</button>
      </form>
      </div>
      </div>
      </div>
      </div>
      </td>
      </tr>
      @endforeach
      </tbody>
      </table>
      </div>
      </div>
      </div>
      </div>
      @endforeach
      </div>
      @else
      <div class="col-lg-12 alert alert-warning" style="margin-top: 10px;">
      No Locations found
      </div>
      @endif


      Here is the code of controller



      public function updateOrder()
      // get the list of items id separated by cama (,)
      $list_order = $_POST['list_order'];

      // convert the string list to an array
      $list = explode(',' , $list_order);
      $i = 1 ;
      foreach($list as $id)
      Location::whereId($id)->update(['location_order'=>$i]);
      $i++ ;











      share|improve this question














      I use accordion in which i use table. In table i get different locations in it. I write a script to re order the location. In Some accordion the locations is same so if i reorder the location in one accordion that changes the all accordion that have same locations. i want if i reorder the location in one accordion it only change in that accordion not in other accordion which have same locations in it. Please help me. Here is my code.



      Here is the code of Script:



      <script>
      var fixHelperModified = function(e, tr)
      var $originals = tr.children();
      var $helper = tr.clone();
      // console.log($helper)
      $helper.children().each(function(index)
      $(this).width($originals.eq(index).width())
      );
      return $helper;
      ,
      updateIndex = function(e, ui)
      $('td.index', ui.item.parent()).each(function (i)
      $(this).html(i + 1);
      );
      ;

      $("#sort tbody").sortable(
      helper: fixHelperModified,
      stop: updateIndex,
      update: function(event, ui)
      var list_sortable = $(this).sortable('toArray').toString();
      // change order in the database using Ajax
      $.ajax(
      url: 'url('admin/locations/updateOrder')',
      type: 'POST',
      data: list_order:list_sortable,_token:'csrf_token()',
      success: function(data)
      //finished

      );

      );
      </script>


      Here is the code of my index.blade.php



       @extends('admin.layout')

      @section('css')
      <link href="//cdnjs.cloudflare.com/ajax/libs/x-editable/1.5.0/bootstrap3-
      editable/css/bootstrap-editable.css" rel="stylesheet"/>
      <link rel="stylesheet" href
      ="https://cdn.datatables.net/1.10.13/css/dataTables.bootstrap.min.css">
      <link rel="stylesheet" href ="https://cdn.datatables.net/responsive/2.1.1/css/responsive.bootstrap.min.css ">
      @endsection

      @section('content')
      <h1 class="page-header">Locations page</h1>

      <div class="clearfix">
      <div class="pull-right" style="margin-bottom: 5px">
      <a href=" route('locations.create') " class="btn btn-success"><i class="fa fa-plus" aria-hidden="true"></i> Create Location</a>
      </div>
      </div>

      @if(count($trails) > 0)
      <div class="panel-group" id="accordion" style="margin-top: 10px;">
      <?php $count = 0;?>
      @foreach($trails as $getTrail)
      <div class="panel panel-default">
      <div class="panel-heading">
      <a data-toggle="collapse" data-parent="#accordion" href="#collapse$getTrail->trail_id" style="text-decoration: none !important;">
      <h4 class="panel-title">
      <span>
      ++$count:
      </span>
      ucwords($getTrail->trail_title)
      <span class="label bg-primary pull-right" style="padding-top: 3px;">
      Total Locations: count($getTrail->location)
      </span>
      </h4>
      </a>
      </div>
      <div id="collapse$getTrail->trail_id" class="panel-collapse collapse @if($count == 1) in @endif">
      <div class="panel-body">
      <div class="table-responsive">
      <table id="sort" class="example table table-striped dt-responsive" cellspacing="0" width="100%">
      <thead>
      <tr>
      <th>Id</th>
      <th>Title</th>
      <th>Rewards Points</th>
      <th>Map options</th>
      <th>Created At</th>
      <th>Updated At</th>
      <th></th>
      </tr>
      </thead>
      <tbody>
      @foreach($getTrail->location as $location)
      <tr id=" $location->id " style="cursor: move;">
      <td> $location->id </td>
      <td>
      $location->title <br>
      <a href=" route('locations.hints', ['id' => $location->id]) " class="btn btn-primary" style="margin-top: 5px">Location Hints</a>
      </td>
      <td> $location->rewards_points </td>
      <td> $location->latitude $location->longitude ,<br/>radius: $location->radius </td>
      <td> $location->created_at->date </td>
      -- <td> $location->location_order </td>--
      <td> $location->updated_at->date </td>
      <td>
      <a title=" $location->title " href=" route('locations.show', ['id' => $location->id]) ">
      <i class="fa fa-eye" aria-hidden="true"></i>
      </a>
      <a title=" $location->title " href=" route('locations.edit', ['id' => $location->id]) ">
      <i class="fa fa-pencil" aria-hidden="true"></i>
      </a>
      <a href="#" data-toggle="modal" data-target="#mySmallModalLabel $location->id " data-location=" $location->id ">
      <i class="fa fa-trash" aria-hidden="true"></i>
      </a>
      <div class="modal fade small_modal_delete" tabindex="-1" role="dialog" id="mySmallModalLabel $location->id ">
      <div class="modal-dialog modal-sm">
      <div class="modal-content">
      <div class="modal-header">
      <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
      <h4 class="modal-title" id="myModalLabel">Deleting the location</h4>
      </div>
      <div class="modal-body">
      Are you sure want to delete this location?
      <form action="url('admin/locations/'.$location->id)" method="POST">
      <input name="_method" type="hidden" value="DELETE" />
      csrf_field()
      <button class="btn btn-default" type="submit">Delete</button>
      </form>
      </div>
      </div>
      </div>
      </div>
      </td>
      </tr>
      @endforeach
      </tbody>
      </table>
      </div>
      </div>
      </div>
      </div>
      @endforeach
      </div>
      @else
      <div class="col-lg-12 alert alert-warning" style="margin-top: 10px;">
      No Locations found
      </div>
      @endif


      Here is the code of controller



      public function updateOrder()
      // get the list of items id separated by cama (,)
      $list_order = $_POST['list_order'];

      // convert the string list to an array
      $list = explode(',' , $list_order);
      $i = 1 ;
      foreach($list as $id)
      Location::whereId($id)->update(['location_order'=>$i]);
      $i++ ;








      jquery ajax laravel-5






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 28 at 8:53









      MoaizMoaiz

      2711 silver badge15 bronze badges




      2711 silver badge15 bronze badges

























          0






          active

          oldest

          votes










          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/4.0/"u003ecc by-sa 4.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%2f55393459%2fjquery-tr-sortable-for-seperate-accordian%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes




          Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.







          Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.




















          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%2f55393459%2fjquery-tr-sortable-for-seperate-accordian%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







          Popular posts from this blog

          Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

          Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

          Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript