here is most likely an easy question.... how come this will not work?
i am trying to change the values of a hidden input inside each sortable to
the current index.

thanks!
        <script type="text/javascript" language="javascript" charset="utf-8">
                Sortable.create('list_filmLnks', {
                        onUpdate: function() {

                                alert('hi');

                                ids = getElementsByClassName('linkIndexNumber');
                                for (i=0; i< ids.length; i++){
                                        $(ids[i]).innerHTML = i;
                                }
                        }
                });
        </script>
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to