That is, the previous write carriage return "about ANGULARJS frame input press Enter event cursor jumps to another input", followed by the input box value, is selected.
Personally feel that the instructions in the ANGULARJS is very good, in the HTML a lot of validation will be used, but, more write.
The following code is implemented:
/**--------------The command press the Enter event, click the value of the event "check" box-----------* / Module. directive (' SelectLine ', function () {return{Restrict:' A ', Link: function (scope, element, attrs) {//element.bind (' MouseOver ', function(event) {//the mouse slides to the data, select//this.Select(); //}); Element.bind (' click ', function(event) {//Click to select this.Select(); }); Element.bind (' Focus ', function(event) {//When getting focus, select this.Select(); }); } }; });
Angularjs input box value, selected