You need to sign in to do that
Don't have an account?

Passing Value of html input to custom controller
Hello,
I am new with VF and apex so please help me. I am using the datepicker of jquery, so I added a html input with type text in my page like this:
<input type="Text" id="Date" name="date"/>
I want to pass the value of this input text to a custom controller. I created in this controller a property names StartDate.
Thanks,
Sally
Use a property to send date value from VF page to controller :
Below is the sample code-
---------------- VF Page ---------------
<input type="Text" value="{!StartDate}"/>
------------- Controller code -----------
public class SaveController
{
public Date StartDate{ get; set; }
// use StartDate value ----
}
Hello,
I tried it but it is not working :(.... Please help
the input text field:
<input type="text" id="from" name="from" value="{!FromDate}"/>
the properties
public Date FromDate
{
get;
set;
}
when I press a button on VF page, and try to access the values of the input fields, they are null.