hi everyone..please help me with my code
CODE:
<script language="javascript">
function tf()
{
if (actiontype.options[actiontype.selectedIndex].value == "1" || actiontype.options[actiontype.selectedIndex].value == "2" || actiontype.options[actiontype.selectedIndex].value == "8" || actiontype.options[actiontype.selectedIndex].value == "15")
var txt='true';
else
var txt='false';
}
<script>
<?php
if (tf()=='true')
{
echo'<tr>
<td class="table-list-title" id="s">Interview Schedule</td>
</tr>';
}
?>
i cant pass the value of txt..please help me how to pass it..