Brak rezultatów

function setLocId(){ $("input[name='li']").val( $("#old_loc_id").val() ); } function removeLocId(){ $("input[name='li']").val(""); } $(function(){ $("#location_input").bind("focus", removeLocId ); $("#location_input").bind("blur", function(){ if($(this).val() == ""){ setLocId(); } }); }); $("#standardForm").bind("submit", function(){ if($("#location_input").val() == ""){ setLocId(); } });