[Solved] Display the value in the alertbox


$('#btn2').click(function () {
    var val = $('#asdf').val();
    alert(val);
})

DEMO

solved Display the value in the alertbox