javascript - How to open a text box when I click on the button? -


i have created button when clicked should open text box or dialogue box. once user inputs data should save , display data there on screen without reloading it.

dont know exact question code similar requirement.

<button type="button" id="btn1" >button</button> 

    $('#btn1').click(function(){  $('#txtbox').show(); }); $("#txtbox").focusout(function(){     $('#output').html($("#txtbox").val()); }); 

fiddle


Comments