how do I print a html form along with its contents

前端 未结 2 2026
眼角桃花
眼角桃花 2020-12-04 03:48

I made and form along with a button to print the form. The form gets printed BUT none of the user input shows up. Is there some way to include the user input?



        
2条回答
  •  渐次进展
    2020-12-04 04:03

    Here's a working example for the record. Also note once the user's input is set as the attribute value, the reset button no longer clears the form. Guess some more jquery is needed to fix that. I added code to handle checkboxes but have no idea what to do with textareas.

    
        
        
    
    
         
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        

    Complete this form

    Name:


    Street Address:
    City: State: Zip Code:



提交回复
热议问题