you could even make it a mini-plugin:

;(function($) {
   $.fn.valueswap = function(selection, opts) {
        var hold = $(selection).values(opts),


On Fri, Oct 16, 2009 at 2:16 PM, johnHoysa <johnho...@gmail.com> wrote:
>
> Figured it out, only tested on FF.
>
> $('.toleft').click(function() {
>                var values2 = $('.left').values(values2);
>                var values = $(this).parents('div.box').values();
>        var $right = $('.right').values(values2);
>        var $left = $('.left').values(values);
>        return false;
>    });
>
>        $('.toright').click(function() {
>                var values2 = $('.right').values(values2);
>                var values = $(this).parents('div.box').values();
>        var $left = $('.left').values(values2);
>        var $right = $('.right').values(values);
>    });
>
>
> On Oct 16, 2:30 pm, johnHoysa <johnho...@gmail.com> wrote:
>> Looking at the example for the values.jquery plugin I would think that
>> I would not only be able to copy values from one id to an other but
>> that I would also be able to switch the values as well.
>>
>> Here is the working example 
>> -http://jquery-values.googlecode.com/svn/trunk/jquery.values.htm
>>
>> Looking at the above example what I would like to do is take the value
>> from id:left and switch it with the value from id:right.
>> So that would give me this ordering id:right   id:middle   id:left.
>>
>> Is this possible? And if so how!
>>
>> appreciate your help!
>>
>> John

Reply via email to