JQuery Sortable not working - Object Expected Error -


i newbie jquery. have added jquery js source ui-core,widget,mouse , ui-sortable. have taken following source internet.

    <meta charset="utf-8"> <title>jquery ui sortable - portlets</title> <link rel="stylesheet" href="../../themes/base/jquery.ui.all.css"> <script src="../../jquery-1.5.1.js"></script> <script src="../../ui/jquery.ui.core.js"></script> <script src="../../ui/jquery.ui.widget.js"></script> <script src="../../ui/jquery.ui.mouse.js"></script> <script src="../../ui/jquery.ui.sortable.js"></script> <link rel="stylesheet" href="../demos.css"> <style> .column { width: 170px; float: left; padding-bottom: 100px; } .portlet { margin: 0 1em 1em 0; } .portlet-header { margin: 0.3em; padding-bottom: 4px; padding-left: 0.2em; } .portlet-header .ui-icon { float: right; } .portlet-content { padding: 0.4em; } .ui-sortable-placeholder { border: 1px dotted black; visibility: visible !important; height: 50px !important; } .ui-sortable-placeholder * { visibility: hidden; } </style> <script> $(function() {     $( ".column" ).sortable({         connectwith: ".column"     });      $( ".portlet" ).addclass( "ui-widget ui-widget-content ui-helper-clearfix ui-corner-all" )         .find( ".portlet-header" )             .addclass( "ui-widget-header ui-corner-all" )             .prepend( "<span class='ui-icon ui-icon-minusthick'></span>")             .end()         .find( ".portlet-content" );      $( ".portlet-header .ui-icon" ).click(function() {         $( ).toggleclass( "ui-icon-minusthick" ).toggleclass( "ui-icon-plusthick" );         $( ).parents( ".portlet:first" ).find( ".portlet-content" ).toggle();     });      $( ".column" ).disableselection(); }); </script> 

it fails in lines $( ".column" ).sortable({....}) , $( ".column" ).disableselection() "object expected error". 2 other lines in between passes no issues while debugging it.

can me out in issue?

i think don't have element class="column", plugin throws error because doesn't find apply.

hope helps. cheers


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -