I would want upon changing a value in the stream field would want the view to run stored procedures and return a message if it find the stream full. please help
Code:
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function SelectedValued() {
$('#STREAM').on('change', function () {
var ddlvalue = $(this).val();
$('#ADMNO').val(this.value);
$('#ACCOUNT').val('#STREAM');
if (ddlvalue != '1') {
alert('ExactEstateLocation');
}
else {
alert('FExactEstateLocation');
}
});
});
</script>
<script>
//To get selected value an text of dropdownlist
$(document).ready(function SelectedValue(ddlObject) {
$('#STREAM').on('change', function () {
var ddlvalue = $(this).val();
//Selected value of dropdownlist
var selectedValue = ddlObject.value;
//Selected text of dropdownlist
var selectedText = ddlObject.options[ddlObject.selectedIndex].innerHTML;
//alert popup with detail of seleceted value and text
alert(" Selected Value: " + selectedValue + " -- " + "Selected Text: " + selectedText);
});
});
<a href="~/Views/STUDENTs/Create.cshtml">~/Views/STUDENTs/Create.cshtml</a>
</script>
<script type='text/javascript'>
window.onload = function () {
document.getElementById("Attendence").style.display = 'none';
//document.getElementById("divthree").style.display = 'none';
$('label[for="Attendence"]').hide();
}
</script>