Welcome Guest, Not a member yet? Register   Sign In
Use JavaScript In CI
#1

[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()??




Theme © iAndrew 2016 - Forum software by © MyBB