JavaScript When i use data-rel=“chosen” json ajax data not binding with Dropdown list when is data reliable,when census data released,when is

My Ajax function

$.ajax({

        type: "POST",
        contentType: 'application/json;charset=utf-8',
        dataType:'json',
        url: 'getSites',
        data: JSON.stringify(),
        success: function(json)
        {//alert("success")
             $.each(json,function(i,obj)
                        {
                        // alert(obj.value+":"+obj.text);
                        var div_data="<option value="+obj[0]+">"+obj[1]+"</option>";
                        //alert(div_data);
                        $(div_data).appendTo('#work_site'); 
                        });

        }


    });

and my dropdown list

<select  name="priority" required="required" data-rel="chosen"  id="work_site">
                                    <option value="">--Select--</option>

                                  </select>

If i remove "data-rel="chosen" from select option it should work perfectly. I really want to display a searchable dropdown list. What should i do?

http://jsfiddle.net/sCyYn/2/ this is i really want with dynamic content from my ajax function.

Answer:1

I have little leaflet application where the app get geoJson objects from server, and display it, specially LineString. The json parser that i use on server side works properly. And the client side ...

I have little leaflet application where the app get geoJson objects from server, and display it, specially LineString. The json parser that i use on server side works properly. And the client side ...

  1. leaflet swap coordinates

This is my code,i don't know why case 0, and case 1 are not working? are there any responses for these levels? This is the output request received processing request request finished and response is ...

This is my code,i don't know why case 0, and case 1 are not working? are there any responses for these levels? This is the output request received processing request request finished and response is ...

How can i draw only two images with reversing I don't know how to reverse. Pls help. var canvas = document.createElement('canvas'); canvas.width = 16 * scale; canvas.height = 32 * scale; ...

How can i draw only two images with reversing I don't know how to reverse. Pls help. var canvas = document.createElement('canvas'); canvas.width = 16 * scale; canvas.height = 32 * scale; ...

  1. horizontally flip image iphone
  2. horizontally flip image css
  3. horizontally flip image python
  4. horizontally flip image online
  5. vertical flip image
  6. vertical flip image python
  7. vertical flip image iphone
  8. vertical flip image online
  9. vertical flip image css
  10. vertical flip image matlab
  11. flip image horizontally photoshop
  12. flip image horizontally android
  13. flip image horizontally after effects
  14. flip image horizontally matlab
  15. flip image horizontally premiere
  16. flip image horizontally illustrator
  17. flip image horizontally html
  18. flip image horizontally powerpoint
  19. flip image horizontally java
  20. flip image horizontally opencv

I know that it's not the best approach to overwrite native JS API and I do it more for experiment. I would like to overwrite Promise resolve method handler to do some extra logic on each resolve. Is ...

I know that it's not the best approach to overwrite native JS API and I do it more for experiment. I would like to overwrite Promise resolve method handler to do some extra logic on each resolve. Is ...