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>