JavaScript Code with variable containing underscore does not work

XMLWordPrintable

    • 4
    • Severity 3 - Minor
    • 3

      Issue Summary

      JavaScript Code with a variable containing an underscore does not work in

      • Page Template 
      • HTML macro
      • 3rd Party Plugin (Script Runner)

      Steps to Reproduce

      Sample code block: 

      $test
      $test_1
      
      <script type="text/javascript">
      $("input[name='variableValues.test']").change(function (){
      console.log($(this).val());
      $("form[name='templateForm']").find("input[name='title']").val($(this).val())})
      </script>

      Expected Results

      test_1 variable should receive an input

      Actual Results

      test_1 variable is not rendered correctly

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available

            Assignee:
            Anoop Singh (Inactive)
            Reporter:
            Suat Kandiş (Inactive)
            Votes:
            3 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: