how about some different object notation?

$.getJSON(
     "http://domain.com/data";,
      function (data) {
           var state = {
                 select: $("#id_state"),
                 div: $("div_id_state"),
                 children: $("#id_region,#id_destination")
           }

          //Do stuff with data
      }
);

what is $("div_id_state") supposed to select anyways?  do you have

<div_id_state> .. </div_id_state> in your markup?


On Sep 21, 3:02 pm, cerberos <pe...@whywouldwe.com> wrote:
> why doesn't this work?
>
>     $.getJSON("http://domain.com/data";, function (data){
>
>       function Place(){}
>       var state = new Place();
>       state.select = $("#id_state");
>       state.div = $("div_id_state");
>       state.children = $("#id_region,#id_destination");
>
>      // do stuff with data here
>
>     }

Reply via email to