function filladult(nopersons)
{
alert("you are here :" + nopersons);
document.getElementById(<%= txtadult.ClientID %>).value= nopersons;
}
or
function filladult(nopersons)
{
alert("you are here :" + nopersons);
$("#txtadult").val()= nopersons;
}
Make sure you have included the js.min to your page for "$".