shadiadiph Posted April 25, 2010 Share Posted April 25, 2010 How can i change the css style once a form has been posted using ajax and an error has been retrieved? Quote Link to comment Share on other sites More sharing options...
F1Fan Posted April 25, 2010 Share Posted April 25, 2010 If you eval() your AJAX response, your AJAX could print out JavaScript code that would change either the CSS class or specific CSS attributes. A couple examples: document.getElementById('elementId').className = 'newClassName'; document.getElementById('elementId').style.color = '#FF0000'; Quote Link to comment Share on other sites More sharing options...
shadiadiph Posted April 25, 2010 Author Share Posted April 25, 2010 thanks F1fan seems to be working I will ask again shortly if it doesnt work out sorry but i am useless at javascript Quote Link to comment Share on other sites More sharing options...
shadiadiph Posted April 25, 2010 Author Share Posted April 25, 2010 thanks F1fan that seemed to solve the problem but now i have another one which i believe means i will have to start a new post. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.