Open GoogleCodeExporter opened 8 years ago
I could not figure out how to capture the event, but it turned out to be easy
to just use JQuery.
I gave the element an "id".
$form->addElement(new PFBC\Element\Textbox("Location", "Location",
array(
"id" => "LocationTextBox")
));
Then used jquery to capture the event for this specific element in the form and
do what I needed to do.
$("#LocationTextBox").keypress(function(event) {
alert("Key Was Pressed);
});
Original comment by jb13bobi...@gmail.com
on 24 Aug 2011 at 2:32
Original issue reported on code.google.com by
plann...@ministryjobs.com
on 6 Aug 2011 at 5:42