jquery with ajax insert query undefined?
<p>I have this undefined value it said that on javascript console what is wrong with my functions?</p>

<p>What i am trying to do here is that, when i click the button it will submit the hidden value to my database. after submitting the value it will fadeout.</p>

<p>the jQuery below </p>

<pre><code> // AJAX/JQUERY FORM
$(function() {
$(".videoThumbS").click(function() {

var test = $("#v_w_id_value").val();
var dataString = test;

if(test=='') {
    alert("Please Select Video");
} else {

$.ajax({
    type: "POST",
    url: "api.php",
    data: dataString,
    cache: false,
    success: function(html){
    $(".videoThumb4").fadeout();
    $(".videoThumb4").hide();
}
});
} return false;
});
});
</code></pre>

<p>the form below</p>

<pre><code>&lt;form method="post" action=""&gt;
&lt;input type="hidden" name="v_w_id" value="UOIDKSJLKH" id="v_w_id_value" /&gt;
&lt;input class="videoThumbS" onClick="ALKJKLJLKMNF" type="button" name="selectSel" value="Select" id="selectbut" /&gt;
&lt;/form&gt;
</code></pre>

<p>why i always got that?
the api.php below</p>

<pre><code>&lt;?php
include ( 'class/conn.php' );
if( isset( $_POST['selectSel'] ) ) {
$v_watch_id = $_POST['v_w_id'];
$selected_videos = mysql_query( "INSERT INTO s_vids VALUE('', '$v_watch_id', NOW() )" ) or die ( mysql_error() );


/* VIEW RECORDS */      
$result = mysql_query("SELECT * FROM s_vids");            //query
$array = mysql_fetch_row($result);                          //fetch result    

echo json_encode($array);
}
?&gt;
</code></pre>
