Open Dialogue And Populate DropDown Within

Open Dialogue And Populate DropDown Within

I have the following div on my page.

  1. <div id="edit">
    <select id ="pages" ></select>
    </div>

I want to populate the above dropdownlist with json data but it is not working . Below is my code.
  1. $(document).ready(function () {
  2.     var data = "[{'url1':'page1','url2':'page2','url3':'page3'}]";            
  3.     $('#edit').dialog({ autoOpen: false })
  4.     $('#editpage').click(function () {
  5.        $('#edit').dialog('open');                    
  6.        $.each(jQuery.parseJSON(data), function (i, value) {
  7.          $('#pages').select.append('<option value="' + value.url + '">' + value.url + '</option>');   
  8.       });                   
  9.    });               
  10. })