Page 1 of 1

datepicker error with browsers

Posted: Wed Oct 14, 2020 12:16 am
by elecho

I have an order program that worked for a long time in old version of IE. It works fine with other browsers such as chrome and safari. However, it does not work for the date picker for these browsers. I have the following script:
<INPUT TYPE="TEXT" NAME="cut_date" VALUE="<? echo htmlspecialchars(stripslashes($cut_date), ENT_QUOTES, 'BIG5'); ?>" SIZE="10" onBlur="dp_dateFormat='yyyy-mm-dd';magicDate(this)" onFocus="if (this.className != 'error')" onClick=",'cut_date', 'yyyy-mm-dd')" READONLY>

For IE, it works fine. For the other browsers, it return with Error: input field "cut_date" does not exist.

What is the problem? How can I solve this problem?

Many thanks!