Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Senior Coder o0O0o.o0O0o's Avatar
    Join Date
    Jan 2008
    Location
    C:\Windows\System32
    Posts
    1,018
    Thanks
    19
    Thanked 9 Times in 9 Posts

    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> 
    Please de-reputate me
    © 0o0o0o0

    Its better to rule in Hell then to serve in Heaven

  • #2
    Regular Coder BabyJack's Avatar
    Join Date
    Apr 2008
    Location
    Somewhere.
    Posts
    602
    Thanks
    43
    Thanked 6 Times in 6 Posts
    Where's that doctype, o0O0o.o0O0o
    Enlightenment in Coding
    Validate before Posting | Google is your friend for PC Problems | Make sure you have a doctype

  • #3
    Senior Coder o0O0o.o0O0o's Avatar
    Join Date
    Jan 2008
    Location
    C:\Windows\System32
    Posts
    1,018
    Thanks
    19
    Thanked 9 Times in 9 Posts
    I am following Google
    Please de-reputate me
    © 0o0o0o0

    Its better to rule in Hell then to serve in Heaven


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •