Elvin Chu
Posts: 0
Joined: Sat Apr 11, 2015 2:52 pm

How to code : Click a button and fill in an input?

How to code : Click a button and fill in an input?
How to code : Click a button and fill in an input?
How to code : Click a button and fill in an input?
How to code : Click a button and fill in an input?

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

How to code : Click a button and fill in an input?

Hello Elvin,

Please use preApperyio("inputName").val("sample text");/pre

Elvin Chu
Posts: 0
Joined: Sat Apr 11, 2015 2:52 pm

How to code : Click a button and fill in an input?

It didn't work :(

Elvin Chu
Posts: 0
Joined: Sat Apr 11, 2015 2:52 pm

How to code : Click a button and fill in an input?

with bootstrap

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

How to code : Click a button and fill in an input?

Elvin, please follow next steps for AngularJS projects:
1) set ng-model (e.g. "test") property for input component
2) create the same variable on the "scope" tab.
3) create function on the "scope" tab with this code:
$scope.test = "sample test";
4) set this function in the "ng-click" property for the button

Elvin Chu
Posts: 0
Joined: Sat Apr 11, 2015 2:52 pm

How to code : Click a button and fill in an input?

Thanks it work now!

Return to “Issues”