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

How to use "#" sign in jQuery For id?

New Here ,
Apr 21, 2014 Apr 21, 2014

Copy link to clipboard

Copied

How to use "#" sign in jQuery For id? When i try to use it like ($('#PropertyAttributeValue').css('color', 'red');)  i got error like following:

The CFML compiler was processing:

  • An expression that began on line 64, column 37.
    The expression might be missing an ending #, for example, #expr instead of #expr#.
  • The body of a cfoutput tag beginning on line 19, column 18.

Views

467

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

Enthusiast , Apr 22, 2014 Apr 22, 2014

Use two hashes to escape the first:

($('##PropertyAttributeValue').css('color', 'red');)

Votes

Translate

Translate
Enthusiast ,
Apr 22, 2014 Apr 22, 2014

Copy link to clipboard

Copied

Use two hashes to escape the first:

($('##PropertyAttributeValue').css('color', 'red');)

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
New Here ,
Apr 22, 2014 Apr 22, 2014

Copy link to clipboard

Copied

Thanks it works..

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 Expert ,
Apr 22, 2014 Apr 22, 2014

Copy link to clipboard

Copied

LATEST

Great! Please kindly mark the answer as 'correct'. Thanks.

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