What's your code looks like? Are you using the replaceOptions() method
correctly:
$("#id").linkselect("replaceOptions", options*, doCallback*)

Replaces the options in the dropdown with the array of objects passed into
the options argument. You can use this API method to repopulate a Linkselect
with options via an AJAX call. When the options are replaced, the
changecallback is triggered for the newly selected item. You can set
the
doCallback to false to prevent callback from being triggered.

For example:

var options = [
      {value: 1, text: "Option 1"}
    , {value: 2, text: "Option 2"}
    , {value: 3, text: "Option 3", selected: true}
    , {value: 4, text: "Option 4"}
    , {value: 5, text: "Option 5"}
];

$("#id").linkselect("replaceOptions", options);

 Each item in the "options" array is a JavaScript object that must contain
at least the keys "value" and "text". Also supported are the keys "selected"
(which can be true for any single item that needs selecting) and the
"className" key, which can be used to define a class for the <option />
element.
Are you using v1.2.07?

-Dan

On Thu, Jul 30, 2009 at 1:17 AM, bharathbhooshan ambati <
bharathbhooshan.amb...@gmail.com> wrote:

> please check the link its not wrking
>
>
> On Thu, Jul 30, 2009 at 1:02 AM, skube <sku...@gmail.com> wrote:
>
>>
>> I'm having a problem with the GivaLabs' Linkselect plugin (http://
>> www.givainc.com/labs/linkselect_jquery_plugin.htm)  and I'm wondering
>> if anyone has any insight?
>>
>> The plugin works great for most things, expect when I try to use the
>> "replaceOptions" to repopulate the option list. I keep getting the
>> following error:
>> I[0] is undefined
>> Failed to load source for: jquery.linkselect.min.js
>>
>> It seems like a generic error, but I'm wondering if anyone could offer
>> any input?
>
>
>
>
> --
> భరత్ భూషణ్ అంబటి
>
>
>

Reply via email to