File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -52,3 +52,8 @@ routing.on('routeselected', function (e) {
5252
5353 document . getElementById ( 'result' ) . value = JSON . stringify ( result ) ;
5454} ) ;
55+
56+ function SelectAll ( id ) {
57+ document . getElementById ( id ) . focus ( ) ;
58+ document . getElementById ( id ) . select ( ) ;
59+ }
Original file line number Diff line number Diff line change @@ -46,8 +46,14 @@ <h1 class="font-source-sans">Generate GeoJSON from cordinates</h1>
4646 < div class ="row mt-4 ">
4747 < div class ="col "> < div id ="map "> </ div > </ div >
4848 < div class ="col ">
49- < h5 class ="font-source-sans "> Result</ h5 >
50- < textarea id ="result " class ="form-control " rows ="15 "> </ textarea >
49+ < h5 class ="font-source-sans "> Result:</ h5 >
50+ < textarea
51+ id ="result "
52+ class ="form-control "
53+ rows ="15 "
54+ onClick ="SelectAll('result'); "
55+ readonly
56+ > </ textarea >
5157 </ div >
5258 </ div >
5359 </ div >
You can’t perform that action at this time.
0 commit comments