HTML_PHP
HTML_PHP

Reputation: 43

Jquery with fadein

My code is a form validation if not filled in than display the X error using jquery it works fine but i want to add when the error shows i want it in a fade in style. Thanks.

function error1(act,txt1){
    hideshow1('error1',act);
    if(txt1) $('#error1').fadeIn('slow', function(txt1){

        $(this).html();

    });
}

Upvotes: 0

Views: 96

Answers (1)

Akhil Thayyil
Akhil Thayyil

Reputation: 9413

Try this

function error1(act, txt1)
{
    hideshow1('error1', act);
    if (txt1)
    {
        $('#error1').html(txt1).fadeIn('slow');
    }

}

Upvotes: 3

Related Questions