Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Class Define Selector
- Copyright 2013 FreakServ Inc. */
- $(document).ready(function (){
- $('#bcomSec').hide();
- $('#bscSec').hide();
- $('#NoSection').hide();
- $('#ClassYear').hide();
- $("#classname").change(function(){
- if( $(this).val() == "Select a class." ) {
- $("#bcomSec").hide();
- $('#bscSec').hide();
- $('#NoSection').hide();
- $('#selsection').show();
- $('#ClassYear').hide();
- $('#selcyear').show();
- }
- if ( $(this).val() == "B.Com" ) {
- $('#selsection').hide();
- $('#NoSection').hide();
- $('#bscSec').hide();
- $("#bcomSec").show();
- $('#ClassYear').show();
- $('#selcyear').hide();
- }
- if( $(this).val() == "B.Sc" ) {
- $('#selsection').hide();
- $('#NoSection').hide();
- $("#bcomSec").hide();
- $('#bscSec').show();
- $('#ClassYear').show();
- $('#selcyear').hide();
- }
- if( $(this).val() == "B.A") {
- $('#selsection').hide();
- $("#bcomSec").hide();
- $('#bscSec').hide();
- $('#NoSection').show();
- $('#ClassYear').show();
- $('#selcyear').hide();
- }
- if( $(this).val() == "BBA") {
- $('#selsection').hide();
- $("#bcomSec").hide();
- $('#bscSec').hide();
- $('#NoSection').show();
- $('#ClassYear').show();
- $('#selcyear').hide();
- $
- }
- if( $(this).val() == "BCA") {
- $('#selsection').hide();
- $("#bcomSec").hide();
- $('#bscSec').hide();
- $('#NoSection').show();
- $('#ClassYear').show();
- $('#selcyear').hide();
- }
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment