Reputation: 186
function trig(){
var a=$('#rolAdd option:selected').text();
var b=$('#rolAdd option:selected').attr("value");
$("#rolRemove").html("<option value='b'> a </option>");
}
how can i use a & b variables from rolAdd select box in rolRemove select box...
Upvotes: 0
Views: 52
Reputation: 100205
Do you mean:
$("#rolRemove").html("<option value='"+b+"'>"+ a + "</option>");
Upvotes: 1