Try with data attribute, it will help u.
function renderEqdam(element) {
var $ele = $(element);
$ele.empty();
$ele.append($('<option />').val('0').text('Select'));
$.each(Eqdams, function (i, val) {
$ele.append($('<option/>').val(val.EqdamName).text(val.EqdamName).attr('data-EqdamPrice', val.EqdamPrice ).attr('data-id', val.id));
})
}
$('#foo').on("change",function(){
var dataid = $("#foo option:selected").attr('data-EqdamPrice');
alert(dataid)
});