I'm encountering an issue with my ajax function. I am trying to change the CSS for certain HTML elements on 'success', using the following code:
success:function(d){
$('#name').css('weight','normal');
$('#msg').css('weight','normal');
$('#date').css('weight','normal');
}
Unfortunately, it doesn't seem to be working as expected.
However, when I use the following code instead:
success:function(d){
alert('some thing');
}
It works fine.
Therefore, I believe the problem lies within the code used in the 'success' function.