Jump to content

Focus on product code field in shopping cart add option


Guest dook

Recommended Posts

Some of my clients enter their orders by product code but find it inefficient beacuse they have to use the mouse to click on the field every time before they start keying in the product code.

Can anyone tell me how to place the focus on the field, I have tried the following javascipt but not sure of location or document name etc.

<script>

setTimeout(’document.cart.productCode.focus()’,500);

</script>

here's hoping

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...