[RESOLVED]What is wrong with the following code?

function txtAddressChanged() {
        txtChanged('txtAddress')
    }

    function txtChanged(control, eventArgs) {
        alert(control);
        $('input[id*=control]').focus();
        $('input[id*=control]').css('color', '#191970');
    }
 
The control css isn't changing so i assum I have to chagen something where it says "
$('input[id*=control]').focus();"
 
Thanks

control is a variable so it should be outside the single quotes: ‘input[id*=' + control + ']‘

Thanks!! worked perfectly.  I am brain dead today but I know I can always count on you!

 

Thanks again!

Leave a Reply