PDA

View Full Version : jquery fieldValue not working


o0O0o.o0O0o
05-07-2008, 08:04 AM
hi ,

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


this is my 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, 06:09 PM
Where's that doctype, o0O0o.o0O0o

o0O0o.o0O0o
05-09-2008, 01:38 AM
I am following Google