<script type="text/javascript"> $("#tech2").change(function () { var cat = $(this).val(); $.get('@Url.Action("viewemp")?id=' + cat, function (r) { $('#div').html(r); }); }); var cat = $('#tech2').val(); if (cat != '') { $.get('@Url.Action("viewemp")?id=' + cat, function (r) { $('#div').html(r); }); } </script>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)