Bug Tracker

Modify

Ticket #6128 (closed bug: invalid)

Opened 4 years ago

Last modified 4 years ago

Cannot reference a variable

Reported by: coednaked Owned by:
Priority: Milestone: 1.4.2
Component: unfiled Version: 1.4.1
Keywords: Cc:
Blocking: Blocked by:

Description

Not sure if it is a bug or not since I am new to JQuery:

var _Ele = 'l_div';

document.getElementById('#' + _Ele) ; works

$('#' + _Ele); does not work

Change History

comment:1 Changed 4 years ago by coednaked

sorry... document.getElementById(_Ele) ; works

comment:2 Changed 4 years ago by coednaked

DELETE this post, was only my ignorance.

comment:3 Changed 4 years ago by john

  • Status changed from new to closed
  • Resolution set to invalid

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.