just want to know what is the equivalent syntax of this to jquery.
var elm_id = \'my_id\'; var elm = document.getElementById(elm_id);
thank
var elm_id = 'my_id'; var elm = $('#' + elm_id)[0];
Adding the [0] gets the actual node which is what document.getElementById(elm_id); returns.