![]() |
help on this anyone? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: help on this anyone? (/showthread.php?tid=3866) Pages:
1
2
|
help on this anyone? - El Forum - 10-29-2007 [eluser]mistress_shiira[/eluser] [quote author="Pygon" date="1193432557"]should work with: Code: echo "<script type=\"text/javascript\">enable_button()</script>" this would not work either. help on this anyone? - El Forum - 02-10-2008 [eluser]mariowarner[/eluser] [quote author="mistress_shiira" date="1193406820"] Quote:<div style="font: 12px normal Verdana;color:red;"> hey guys can you help me with this? i have a simple sign up form..when the user submits the form and there is still a validation error, i want the submit button to be enabled.the submit button was disabled on load fyi. the code above doesnt seem to work...[/quote] hi, you probably have already solved this problem but i'd like to share my experience for others who had the same problem. i think the problem has to do with where the error_string shows up. if you write it somewhere inside the form (right after the opening < form > ![]() i had the same problem just now when i placed the "echo $this->validation->error_string;" show up inside the form. when i moved it outside of the form, the buttons become enabled again without any need to make additional scripts. hth. ![]() |