$("#txtcode").autocomplete({
minLength: 1,
source: "/AC/student.php?searchMode=''&Stno="+$("#txtcode").attr("value"),
select: function(event, ui)
{
var label= ui.item.label;
var value= ui.item.value;
var stuArr = label.split('-');
alert(stuArr [1]);
$('#tx_stname').val( stuArr [1].replace(/\$/g, ""));
}
});
In the above code when I say alert(stuArr [1]);
.
I am getting the font
tag <font size='1' color='green'>ABCDERT(Student name)</font>
from the server side script.
How do I remove the font
tags and put the "ABCDERT" name in the textbox ($('#tx_stname')
)?