I'm trying to add an input field along with a drop down in an Angular 
Bootstrap Dialog box and am just not getting it. When a certain item is 
selected from the drop down an input field will display where the user will 
enter in the amount. I'm not sure how to pass the item that was selected 
AND the amount back to the controller.

I took a subset of the code to get a working example to put onto Plunker. I 
found that if I added vm.currentTransaction.ReasonDiscrepencyAmount = 
document.getElementById('amount').value; to the controller it worked. And 
it worked in Plunker. However, if I transfer this to my application it does 
not work. document.getElementById('amount').value is empty.

I'm still fairly new to Angular so I'm at a loss at what to do.

Here is the code in Plunker: 
http://plnkr.co/edit/oJdax2LhlKWxSpRkH0fq?p=preview

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to