Alert and disable

N

news

Hello,
How can I check if the file is an JPG within my form??
If the file is JPG then the submit button should be enable, if not the
submit button should be disable!!

Can someone paste any samplecode!!

//Nils
 
M

Mike Brind

news said:
Hello,
How can I check if the file is an JPG within my form??
If the file is JPG then the submit button should be enable, if not the
submit button should be disable!!

Can someone paste any samplecode!!

//Nils

You will have to use client side code for this. ASP can't be used to
check anything until AFTER the submit button has been clicked.

Try comp.lang.javascript
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top