I believe this is because you can't actually remove the attribute "disabled" - Instead try doing $("#submitanswer).attr("enabled", "enabled"); (plus you had an error in your syntax, you didn't put a # in that removeAttr line...)

Hope that helps

Allan


PaulM wrote:
                if($("#answer").val().length < 200){
                        $("#submitanswer").attr("disabled","disabled");
                 }

will disable it but than upon the key press I want to enable it and
this doesnt work:


              $("#answer").keyup(
                        function(){
                                $('#answer'+'count').text('Count: '+ 
$("#answer").val().length);

                                if( $("#answer").val().length > 200 ){
                                alert('ere');
                                        
$("submitanswer").removeAttr("disabled");
                                }

                        }
                );

 how can you help?

Reply via email to