title: jquery autocompletion select event, show data from action
body: <p>On select event autocompletion, I want to call an JsonResult action in my controller to show data from the database.</p>
  
  <p>function JS</p>
  
  <pre><code>select: function (e, i) {
                  $("#idp").val(i.item.val);
                  $.ajax({
                      type: 'Post',
                      dataType: "json",
                      contentType: "application/json; charset=utf-8",
                      url: '/controller/action/',
                      data: "{ 'id': '" + i.item.val + "'}",
                      success: function (data) {
                          // code to put here//
                          $("#mydiv").html(data);
                      }
  
                  })
              },
  </code></pre>