Home >Backend Development >PHP Tutorial >下拉列表单有关问题

下拉列表单有关问题

WBOY
WBOYOriginal
2016-06-13 10:03:35766browse

下拉列表单问题
MONETARY_UNIT是一个下拉列表单的ID,我这样写他没反应 。我把我的下拉表单的程序也帖上来。麻烦帮我看一下。 我这个已初始值为JPY了,应该一打开页面就是只读,但没用。
if($("#MONETARY_UNIT").val()==JPY)
{
("#ss").addclass("readonly")

}


function monetary_unit()
{
echo '';
$monetary_unit1=getmontary_unit();//从数据库中得到
  foreach($monetary_unit1 as $k=>$v)
{

echo '';

  }
}

------解决方案--------------------
if($("#MONETARY_UNIT").val()=='JPY') 

("#ss").addclass("readonly") 


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn