hi all
im haveing a lot of trouble setting the cursor to the end of the text i have made it so it reloads as you type then puts the cursor in the box but it goes to the start does anyone know how to put it at the end. im still a noob at this stuff
[CODE] <html>
<head>
<title>Test Price List</title>
<link rel=”stylesheet” type=”text/css” href=”admin/site.css” />
<script>
function sf(){document.searcharea.itemsearch.focus()}
</script>
</head>
<body onload=”sf()”>
<?php
include(“admin/connect.php”);
include(“toolbar.php”);
$typesearch = @”$_POST[typesearch]” ;
$itemsearch = @”$_POST[itemsearch]” ;
echo ”
<table border=’0′ cellpadding=’5′ cellspacing=’0′>
<form action=’index.php’ method=’post’ name=’searcharea’>
<tr><td>Item Description:</td><td><input type=’text’ title=’Type The Name Of The Item’ name=’itemsearch’ value=’$itemsearch’ class=’TEXTB’ onkeyup=’this.form.submit()’ /></td>
<td>Type: </td><td><select type=’text’ name=’typesearch’ class=’SELECTA’ id=’typesearch’ title=’Select The Item Type’ onchange=’this.form.submit()’ />
<option value=’$typesearch’>$typesearch    (current)</option>
<option value=’All Items’>All Items</option>”;
include(“admin/type.php”);
echo “</select></td>
<td></td><td></td></tr>
</form></table><br /><br />”;