I don't usually like to bother you all but I'm stuck on something and I can't find an answer anywhere, hope you guys can help me out!
I'm building a web app and designing it so the interface matches iOS7. http://danj.eu/webdesign/new
I've got an input form, and I need the button to submit the form to only turn blue and become selectable once the validation has completed. I've wrote some JS to validate the input but this only runs once! I need to run the function every time the user modifies the value of the input.
This is what I've got so far for the JS:
function validateInput(){
if (document.getElementById('projectname').value.length < 2)
document.getElementById('forwardbutton').style.color = "#c4c4c5";
else
document.getElementById('forwardbutton').style.color = "#0e81ff";
}
Thanks guys!