Forums Register Login

How to differ a InputFile textbox from the button in javascript?

+Pie Number of slices to send: Send
I need to know how can I differ InputFile textbox from the InputFile button in javascript, that is, i need a way to do something like this:

//event.type = keyDown

if(key == enter){

if(textbox of inputFile) {
event.cancel();
}

}

Anyone knows something?
Thanks.
You can thank my dental hygienist for my untimely aliveness. So tiny:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1057 times.
Similar Threads
How to populate a value in text box
javaScript Help......
making the textbox readonly
Copy-to-clipboard
checking user inputs
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 04:28:52.