Element reference methods after 1.4.1 upgrade.

Element reference methods after 1.4.1 upgrade.

***I've posted this question twice so far and it hasn't shown up after about 15 hours:***


The following used to work with version 1.3.2

var x = $('#ElementID').val();

var x = $("'#" + "ElementID" + "'").val();

var eid = "'#" + "ElementID" + "'"; var x = $(eid).val();

Only the top one works with version 1.4.1

Similarly the following used to work with 1.3.2 but it doesn't work anymore. 

var eid = "ElementID"; $("'#" + eid + " option[value='" + x + "']'").attr('selected', 'selected');