Go Back   CodingForums.com > :: Client side development > JavaScript programming > JavaScript frameworks

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 05-07-2008, 07:04 AM   PM User | #1
o0O0o.o0O0o
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
o0O0o.o0O0o is infamous around these parts
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
o0O0o.o0O0o is offline   Reply With Quote
Old 05-07-2008, 05:09 PM   PM User | #2
BabyJack
Regular Coder

 
BabyJack's Avatar
 
Join Date: Apr 2008
Location: Somewhere.
Posts: 602
Thanks: 43
Thanked 6 Times in 6 Posts
BabyJack is an unknown quantity at this point
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
BabyJack is offline   Reply With Quote
Old 05-09-2008, 12:38 AM   PM User | #3
o0O0o.o0O0o
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
o0O0o.o0O0o is infamous around these parts
I am following Google
__________________
Please de-reputate me
© 0o0o0o0

Its better to rule in Hell then to serve in Heaven
o0O0o.o0O0o is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:30 PM.


Advertisement
Log in to turn off these ads.