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

CFLOOP & Javascript Help

Community Beginner ,
Apr 23, 2007 Apr 23, 2007

Copy link to clipboard

Copied

I am wondering if I can make this script work. I am wanting the "i" to be available to the javascript is there a way to do this? Anyone have any ideas? Thanks
<CFLOOP from="1" to="#abilityQ.recordcount#" index="i">
<CFOUTPUT>#abilityQ.question #<cfform >
<cfinput type="radio" name="A1" label="Yes" value="Yes" >
<span class="questionsNormalAnswer">Yes </span>k
<cfinput type="radio" name="A2" label="No" onClick= "javascript:MM_showHideLayers('incorrecti','','show');" value="No">
<span class="questionsNormalAnswer">No </span>
</cfform> <hr align="center" width="75%" class="horizontalline"></CFOUTPUT>
</CFLOOP>
TOPICS
Advanced techniques

Views

242

Translate

Translate

Report

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

correct answers 1 Correct answer

Advocate , Apr 23, 2007 Apr 23, 2007
Hi,

Your onClick attribute should be like this,

onClick="javascript:MM_showHideLayers('incorrect#i#','','show');"

Votes

Translate

Translate
Advocate ,
Apr 23, 2007 Apr 23, 2007

Copy link to clipboard

Copied

Hi,

Your onClick attribute should be like this,

onClick="javascript:MM_showHideLayers('incorrect#i#','','show');"

Votes

Translate

Translate

Report

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
Community Beginner ,
Apr 23, 2007 Apr 23, 2007

Copy link to clipboard

Copied

LATEST
Duh... I should have seen that. Thank you so much.

Votes

Translate

Translate

Report

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
Documentation