I have a select that I fill from my database, all right up there but I fill three parameters in my select: one is the value, another parameter 2 and another what is shown. What I need is to get what is shown so create the parameter 2 so you can get it by jquery.
I give you an image of how I load my select
I need to get what is displayed or the parameter 2
I pass the jquery
function elegirsaldo(){
var saldo = $(this).attr("parametro2");
alert(saldo);
}
but I get undefined
I hope your help thanks