sorry. i need download the plugin :)

On Jan 26, 9:02 pm, tom <tom.s.macken...@gmail.com> wrote:
> Thanks Donald. I'm still having trouble. I get, $
> ("#id_product").removeOption is not a function
>
> Where my js is,
> <script type="text/javascript" src="/media/foods/js/jquery-1.3.js"></
> script>
>
> <script type="text/javascript">
> $(document).ready(function() {
>     $("#id_company").change(function () {
>         var data = {};
>         data.company = $(this).val();
>
>         $.post("/ajax/products/", data, function(responseData){
>           alert(responseData);
>           $("#id_product").removeOption(/./);
>         }, "json");
>     });
>
> });
>
> And my selector is,
>
>       <div class="row">
>           <label for="id_product">Product</label> <select
> name="product" id="id_product">
> <option value="">---------</option>
> <option value="1" selected="selected">Peanut butter</option>
>
> <option value="2">Poop</option>
> </select>
>           <font color="red"></font>
>       </div>
>
> Any additional help? Thanks!
>
> On Jan 26, 8:39 pm, "Donald J. Organ IV" <dor...@donaldorgan.com>
> wrote:
>
> > Take a look at this:
>
> >http://www.texotela.co.uk/code/jquery/select/
>
> > ----- Original Message -----
> > From: "tom" <tom.s.macken...@gmail.com>
> > To: "jQuery (English)" <jquery-en@googlegroups.com>
> > Sent: Monday, January 26, 2009 9:25:01 PM GMT -05:00 US/Canada Eastern
> > Subject: [jQuery] Edit list of items in selector.
>
> > Hello All,
>
> > I am trying to reset the list of values in a selector with new a set
> > values I have in a list of JSON objects. I dont know the proper syntax
> > for doing this any help is greatly appreciated as I've searched the
> > web for this and couldn't find anything on it.
>
> > The only way I know would work is regenerate the selector via
> > generating html in a function (which is no fun). Seems like there
> > should be a better way.

Reply via email to