Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
retrieve value from form input
  • 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?
  • 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?
  • bvnbvn
    Accepted Answer
    @JeanAlesi
    Try to use $('#form_alias').val() or try to inspect your form with firebug ;-)

  • @phillipp
    ont the client side
  • I don't know why, now it works... So this question is resolved

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion