javascript - pass selected value from popup window to parent window input box

前端 未结 5 984
逝去的感伤
逝去的感伤 2020-11-29 23:20

I am building an order form with PHP and MySQL.

The PHP Form has an input box where the user types in a product code. In the event that the user does not know the pr

5条回答
  •  庸人自扰
    2020-11-29 23:54

    My approach: use a div instead of a pop-up window.

    See it working in the jsfiddle here: http://jsfiddle.net/6RE7w/2/

    Or save the code below as test.html and try it locally.

    
    
    
        
        
    
    
    
    
    

    Select something:

    clean and simple.

提交回复
热议问题