MONETARY_UNIT is the ID of a single drop-down list. I also post my drop-down form program. Please take a look. My initial value is JPY. it should be read-only once the page is opened, but it is useless. If ($ (& quot; # MONETARY_UNIT & quot;). val () = JP drop-down list ticket
MONETARY_UNIT is the ID of a single drop-down list. it does not respond when I write it like this. I also post my drop-down form program. Please take a look. My initial value is JPY. it should be read-only once the page is opened, but it is useless.
If ($ ("# MONETARY_UNIT"). val () = JPY)
{
("# Ss"). addclass ("readonly ")
}
Function monetary_unit ()
{
Echo' JPY';
$ Monetary_unit1 = getmontary_unit (); // Obtain
Foreach ($ monetary_unit1 as $ k => $ v)
{
Echo' '. $ V ["CODE_NAME"].'';
}
}
------ Solution --------------------
If ($ ("# MONETARY_UNIT"). val () = 'jpy ')
{
("# Ss"). addclass ("readonly ")
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service