Forum Moderators: open
lets say i have a page with 3 diff inputs displayed
-name
-location
-age
is there a way to automatically make one of the boxes active on page load, meaning the user does not need to click or tab to it(so the user can just start entering data)? im not sure if this is the right area for this question. please let me know. thanks.
-khanh
heres the line that is generated by ajax and php
echo "<td><input type=text size=3 maxlength=3 id=\"item$item_idcurr\" value=\"$quantity\" onkeyup=\"update_cart('item_id=$item_idcurr&action=update_quantity&new='+this.value);\"> </input></td>\n";
essentially, what this does is it updates the current quantity for this particular item in the cart by calling the update_cart js function, which in turn will call a php script and passes the item_id, action, and the value that is inside this input box. the script will basically spit out the same line(among others), only with the updated quantity. let me know what you guys think.