I have modal 1 with :

Customer name 
Customer Number
"Link customer button"

When the user click on "Link customer button", the modal 2 is opened :

customer name

"search button"

when the user click on search button, he will have a list of customer, he should then select the right customer.

step 1 : pass customer name from modal 1 to modal 2 (already done)
step 2 : when the user select the right customer in modal 2, I would like to close modal2 and display customer Number in the modal 1

Can someone help me ?

you can find my code here : <http://www.bootply.com/AGp9tttB54#>