Bug Tracker

Ticket #6128 (closed bug: invalid)

Opened 5 years ago

Last modified 5 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 5 years ago by coednaked

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

comment:2 Changed 5 years ago by coednaked

DELETE this post, was only my ignorance.

comment:3 Changed 5 years ago by john

  • Status changed from new to closed
  • Resolution set to invalid
Note: See TracTickets for help on using tickets.