My below code works fine and is used to populate a <select>
item with dynamic <options>
The problem is that say I end up with 3 <options>
say: One / Two / Three and then I select the first <option>
so that I can call jquery code to populate the next menu. One is already the <selected>
item in the menu so it is not recognized as a onChange event.
Ben o zaman bir One Değiştiğinde aramak için iki seçmek gerekir.
Ben AçıkDeğiştirme yerine kullanmanız gereken bir şey var mı? Veya varsayılan değer olarak boş bir <option>
öğe koymak gerekir? Bu nedenle her zaman bir değişiklik olacak mı?
//if the job menu is changed
$('#job').change (function ()
{
$.get('ajax/employee_menu.php', { job: $('#job').val() },
function(data)
{
//load the <options> into the element
$("#employee").html( data );
// show the menu once loaded
$("#employee").css({ "display" : "inline" });
});
});