Quantcast
Channel: Active questions tagged html - Stack Overflow
Viewing all articles
Browse latest Browse all 72416

Make input value bind to another input value in AngularJS

$
0
0

I'm having trouble binding one input element to another input element. One input lives on home.html and the other lives on modal.html that pops up over the website. I want the values of input id "land-input" on home.html to transfer to input id "modal-email" on modal.html

Currently it's not transferring the value at all and "modal-email just uses the placeholder text. Help is appreciated.

HTML - home.html

<input id="land-input" placeholder="E-Mail Address" type="email">

HTML - modal.html

<input id="modal-email" placeholder="E-Mail Here" required ng-model="user.emailAddress" email-Available name="email" type="email">

AngularJS

function innerSubmit() {
    $scope.user.emailAddress = document.getElementById('land-input').value;

}

Viewing all articles
Browse latest Browse all 72416

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>