<script>
$.noConflict();
jQuery(document).ready(function ($) {
$('#Entry_date').datepicker({
autoclose: true,
dateFormat: 'yy-mm-dd',
showtime: true
});
$('#expiry_date').datepicker({
autoclose: true,
dateFormat: 'yy-mm-dd',
showtime: true
});
});
</script>
<script type="text/javascript">
$(document).ready(function () {
$('#Department').change(function () {
var options = "";
$.ajax({
url: "Bind_Designations",
type: "post",
dataType: "json",
data: { Dept_id: $('#Department').val() },
success: function (data) {
$.each(data, function (index, item) {
options += '<option value=' + item.Value + '>' + item.Text + '</option>'
});
$('#Des_Id').append(options);
},
error: function () {
alert("error");
}
});
});
});
</script>
<script type="text/javascript">
$(document).ready(function () {
$('#Des_Id').change(function () {
debugger;
var options = "";
$.ajax({
url: "Bind_Employees",
type: "post",
dataType: "json",
data: { Des_id: $('#Des_Id').val() },
success: function (data) {
debugger;
$.each(data, function (index, item) {
options += '<option value=' + item.Value + '>' + item.Text + '</option>'
});
$('#Emp_Id').append(options);
},
error: function () {
alert("error");
}
});
});
});
</script>
$.noConflict();
jQuery(document).ready(function ($) {
$('#Entry_date').datepicker({
autoclose: true,
dateFormat: 'yy-mm-dd',
showtime: true
});
$('#expiry_date').datepicker({
autoclose: true,
dateFormat: 'yy-mm-dd',
showtime: true
});
});
</script>
<script type="text/javascript">
$(document).ready(function () {
$('#Department').change(function () {
var options = "";
$.ajax({
url: "Bind_Designations",
type: "post",
dataType: "json",
data: { Dept_id: $('#Department').val() },
success: function (data) {
$.each(data, function (index, item) {
options += '<option value=' + item.Value + '>' + item.Text + '</option>'
});
$('#Des_Id').append(options);
},
error: function () {
alert("error");
}
});
});
});
</script>
<script type="text/javascript">
$(document).ready(function () {
$('#Des_Id').change(function () {
debugger;
var options = "";
$.ajax({
url: "Bind_Employees",
type: "post",
dataType: "json",
data: { Des_id: $('#Des_Id').val() },
success: function (data) {
debugger;
$.each(data, function (index, item) {
options += '<option value=' + item.Value + '>' + item.Text + '</option>'
});
$('#Emp_Id').append(options);
},
error: function () {
alert("error");
}
});
});
});
</script>
No comments:
Post a Comment