Love Fuel?
Donate
About
Forums
Discussions
Login
FuelPHP Forums
Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
General
retrieve value from form input
JeanAlesi
August 2015
This might not be a fuelphp question per se.. I have the following line:
<?php echo Form::input('alias', '', array('style' => 'border: 2px;', 'id' => 'tmtrip_alias')); ?>
How can I retrieve the value the user typed in this text input box?
I tried using jquery, but it didnt' work:
$('alias').val()
What's the right way of doing this?
philipptempel
August 2015
Are you trying to get the access to the value on the client side or the server side? More specifically: do you want to retrieve it before the form is (being) submitted or afterwards?
bvn
August 2015
Accepted Answer
@
JeanAlesi
Try to use $('#form_alias').val() or try to inspect your form with firebug
;-)
JeanAlesi
August 2015
@phillipp
ont the client side
JeanAlesi
August 2015
I don't know why, now it works... So this question is resolved
Add a Comment
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Apply for Membership
Categories
All Discussions
5,088
General
↳ General
3,364
↳ Job Board
13
↳ Installation & Setup
214
Packages
↳ Oil
213
↳ Orm
700
↳ Auth
260
Development
↳ Tips and Tutorials
126
↳ Code share
145
↳ Applications
52
In this Discussion
bvn
August 2015
JeanAlesi
August 2015
philipptempel
August 2015