Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- HTML:
- {{#each item in items}}
- <tr>
- <td>{{driver.bearing}}</td>
- <td>{{input type="text" class="form-control" value=item.one}}</td>
- <td>{{input type="text" class="form-control" value=item.two}}</td>
- <td>{{input type="text" class="form-control" value=item.three}}</td>
- </tr>
- {{/each}}
- JS:
- generateRandomId: function(){
- var randomId = "";
- var possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
- for(var i=0; i < 6; i++){
- randomId += possible.charAt(Math.floor(Math.random() * possible.length));
- }
- return randomId;
- },
Add Comment
Please, Sign In to add comment