Use JavaScript In CI |
[eluser]Unknown[/eluser]
I have one javascript to validate something empty "function validate_form ( ) { valid = true; if ( document.something.value == "" ) { alert ( "Please select a file before clicking upload ! " ); valid = false; } return valid; } my question how to make the javascript integration with CI with format form_open() if we clik the save button and the value input is "" will show alert please how to make this not use form action="mailto:[email protected]" method="post" onsubmit="return checkform(this) but with use form_open()?? |
Welcome Guest, Not a member yet? Register Sign In |