CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   JavaScript frameworks (http://www.codingforums.com/forumdisplay.php?f=62)
-   -   jquery fieldValue not working (http://www.codingforums.com/showthread.php?t=139191)

o0O0o.o0O0o 05-07-2008 07:04 AM

jquery fieldValue not working
 
hi ,

i am using jquery form plugin and i simply tetsing the form fieldValue property but its not working.


this is my code

PHP Code:

<html>
<
body>




<
head>


<
script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="jquery.form.js"></script>    


<script type="text/javascript"> 
        // wait for the DOM to be loaded 
        $(document).ready(function() { 
            // bind 'myForm' and provide a simple callback function 
            $('#test1').ajaxForm(function() { 
                alert("Thank you for your comment!"); 
            }); 
        }); 
    


function test()

{
alert($('#test1 :name').fieldValue()[0]);

}




</script> 

<form id = "test1" name = "test2" method="post">
        
        <input type = "text" name = "name" />
        
        <input type = "button" onclick = "alert($('#test1 :name').fieldValue()[0]);" />
        </form> 


BabyJack 05-07-2008 05:09 PM

Where's that doctype, o0O0o.o0O0o

o0O0o.o0O0o 05-09-2008 12:38 AM

I am following Google


All times are GMT +1. The time now is 09:51 PM.

Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.