How to show hide a class?
On ajax suucess i have to hide a class and show the different class.
Suppose I have "foo" and "bar" two classes. Now It has "foo" class when my ajax returns success then I want to show the "bar" class. 

    $.ajax({
    		type:'POST',
    		url:"/test/",
    		data:{"test_data": my_data},
    		success:function(data) {
    		
    		},
    		dataType:"json"
      		// here I want to hide the "foo" class and show the "bar" class.
    	});
How to show hide a class?
===

On ajax suucess i have to hide a class and show the different class.
Suppose I have "foo" and "bar" two classes. Now It has "foo" class when my ajax returns success then I want to show the "bar" class. 

    $.ajax({
    		type:'POST',
    		url:"/test/",
    		data:{"test_data": my_data},
    		success:function(data) {
    		
    		},
    		dataType:"json"
      		// here I want to hide the "foo" class and show the "bar" class.
    	});