PHP Classes

how do you get the val()

Recommend this page to a friend!

      jQuery-PHP  >  All threads  >  how do you get the val()  >  (Un) Subscribe thread alerts  
Subject:how do you get the val()
Summary:Great package, but how can I retrieve values?
Messages:1
Author:Pete Dakin
Date:2008-04-03 12:59:36
 

  1. how do you get the val()   Reply   Report abuse  
Picture of Pete Dakin Pete Dakin - 2008-04-03 12:59:36
Hello Anton

I'm using your jquery.php package and finding it very useful, it's nice to be able to stay inside my comfort zone, php. Being new to JQuery, I've noticed there is a method called val() for getting contents of an element.

Is there a way to implement this using your package?

I would like to achieve this:

<?php
$sMyValue = jQuery::something // retireve the value of a textarea
?>

in place of

<script>
var myvalue = $("#mytextarea").val();
</script>

Thanks in advance.