خرید بک لینک
I trying to get the value of the last option of a select.
I've tried
Code:

var lastValue = parseInt(document.getElementById("IdOfElement").options.lastValue);
alert(lastValue);

gives me NaN, and
Code:

var lastValue = $('#IdOfElement option:last-child').value();
alert(lastValue);

No alert.

برچسب: نویسنده: آیلین رضوانی تاريخ: شنبه 23 دی 1396 ساعت: 8:05

صفحه بندی