Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

List drop down issue (A value is disapearing)! Help!

New Here ,
Oct 28, 2009 Oct 28, 2009

Hi All,

I'm wondering why i am getting such a weired problem.

In my CFM, i'm filling list drop down with code:

<SELECT NAME="selgroupid">
     <OPTION VALUE="N/A">N/A</OPTION>
     <OPTION VALUE=""></OPTION>
     <CFLOOP QUERY="Group">
      <cfif #ucase(group_name)# neq 'N/A'>
      <OPTION VALUE="#group_name#">#group_name#</OPTION>
      </cfif>
     </CFLOOP>
    </SELECT>

To my greatest surpirse, i'm not getting first "N/A" on my page.

i noticed that as soon as i hit my page, N/A appears for a frection of second, and then disappears.

In my View Source the Drop down is:

<SELECT NAME="selgroupid">
     <OPTION VALUE="N/A">N/A</OPTION>
     <OPTION VALUE=""></OPTION>
           <OPTION VALUE="AIIAC">AIIAC</OPTION>
            <OPTION VALUE="AIIRC">AIIRC</OPTION>
            <OPTION VALUE="AIISC">AIISC</OPTION>
            <OPTION VALUE="AIISN">AIISN</OPTION>
          <OPTION VALUE="AIISU">AIISU</OPTION>
           <OPTION VALUE="AIITX">AIITX</OPTION>
            <OPTION VALUE="AIIWU">AIIWU</OPTION>
           <OPTION VALUE="DASON">DASON</OPTION>
            <OPTION VALUE="EL CAMINO">EL CAMINO</OPTION>
       </SELECT>

I tried to use SELECTED in select as well, it is coming in view source, but N/A is dissapearing on main page.

On FORM submit, i'm using a javascript function, but just to validate whatever is selected and nothing else.

Please Helpppppp!

Thanks,

Toshu

423
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 28, 2009 Oct 28, 2009
LATEST

Sorryyyyyy!   No problems! Actually On Load, a javascrip was doing magic!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources