phpScott wrote:
If the only place you have textboxes on the page is for qty's then post again and I can send you some more elegant code to do the job.
In you form tag do this
Code: Select all
<form action="somepage.php" method="post" onSubmit="validateNums()">
hope that helps.
hi
phpScott, here I'm again, posting... yes, the only part in my page where I have textboxes is to enter the quantity of a product to be requested... could u please show me that "more elegant code" to do the job

of allowing enter only integer inside my textboxes form.
Could u explain that code piece pretty well to understand every sentence what it does?, I barely understood ur last post where u posted the javascript code to do this, I guess that the part in bold u were talking about is the part between
right ?
Other question... I know (sorry if I'm wrong

) the declaration of javascript begins with
<script language = javascript> and finish with:
</script> but since I dont see where u finish the declaration of javascript with "</script>" in ur code I dont know where it finish to be declared.
Finally, to give u an idea of my page, look at this image, which is a little part of how it looks like:
This is an old image of how my page looked at the begining, now I have a lot of textboxes to allow the user enter the quantity because I added more pc devices categories like processors, motheboards, video cards, sound cards, burners, cd-roms, etc. and after the drop down menu showing the product name with its respective price, there is always a textbox to enter the quantity of the device.
thx man !
