I want selecting last option that appended in following code:
var o=$('select[name="D1"]');
o.append('<option value="'+buval+'">'+butxt+'</option>');
$("select[name="D1"] :last-child").fadeIn('slow')
I want choose it without select[name=”D1″] in last code, because I had choosed it before. Is there any alternatives? like as following code?
o.$(":last-child").fadeIn('slow')
Try:
Or: