asked on
<script type="text/javascript" language="javascript">
$(document).ready(function() {
$("#lsAPExerciseOptions").click(function() {
var found = false;
$('#lsAPExerciseOptions :selected').each(function(i, selected) {
if (parseInt($(selected).val()) == 11) {
found = true;
}
});
if (found) {
$("#lbOtherExercise").show();
$("#txtOtherExercise").show();
}
else {
$("#lbOtherExercise").hide();
$("#txtOtherExercise").hide();
}
});
$("#lsAPDietOptions").change(function() {
value = $(this).val();
text = $("option:selected", this).html();
if (value == '1') {
if ($('#lbPerDay').length + $('#lbPerWeek').length < 2) {
alert("field(s) 1 not found in the page");
}
else {
$('#lbPerDay').show();
$('#lbPerWeek').hide();
}
}
else {
if ($('#lbPerDay').length + $('#lbPerWeek').length < 2) {
alert("field(s) 2 not found in the page");
}
else {
$('#lbPerDay').hide();
$('#lbPerWeek').show();
}
}
if (value != -1)
if ($('#txtTarget').length < 1) {
alert("field(s) 3 not found in the page");
}
else {
$('#txtTarget').show();
}
else
if ($('#txtTarget').length < 1) {
alert("field(s) 3 not found in the page");
}
else {
$('#txtTarget').hide();
}
});
// $(function() {
// $('ul.sf-menu').superfish();
// });
$(document).ready(function() {
$('ul.sf-menu').superfish();
});
});
</script>
</asp:Content>
ASKER
ASKER
The successor to Active Server Pages, ASP.NET websites utilize the .NET framework to produce dynamic, data and content-driven web applications and services. ASP.NET code can be written using any .NET supported language. As of 2009, ASP.NET can also apply the Model-View-Controller (MVC) pattern to web applications
TRUSTED BY
ASKER