I really appreciate your helps, please help me one more thing, i have the following code, can you pleae tell me where am i doing it wrong?
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"> </script>
<script>
function upd(str)
{
$.ajax({
type:'post',
url:'upld.php',
datatype:'html',
data:'fname='+str,
success:function(response)
{
$("#ee").load("upld.php");
}
});
}
</script>
</head>
<body>
<select name="nmae" id="nmae" onChange="upd(this.value)">
<option value="dd">dd</option>
<option value="cc">cc</option>
</select>
<div id="ee"></div>
and my upld.php file consists of :
<?php
$k= $_POST["game"];
echo $k;
?>
data:'fname='+strdata:{'fname':str}