View Single Post
Old 12-04-2012, 12:41 AM   PM User | #7
jquerynewbie
New to the CF scene

 
Join Date: Nov 2012
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
jquerynewbie is an unknown quantity at this point
@DatinMa. Yes I do care about all form fields, I made a function here, but is this the best way to do something like this?


http://jsfiddle.net/hc8kL/35/

Code:
function checktext() {
   
if($("#f1").val().length > 0 && $("#f2").val().length > 0 && $("#f3").val().length > 0)  {
    $('#stage1').removeAttr('disabled');}
    else {document.getElementById("stage1").disabled = true;}
}
jquerynewbie is offline   Reply With Quote