I'm having trouble accessing elements on an angularjs rendered page. Even a simple script to popup an alert.
Here's my code:
<div class="col-md-10 col-md-offset-1">
<div>
<table class="table table-striped">
<thead>
<th>From File</th>
<th>Map To</th>
</thead>
<tr class="selector-row" ng-repeat="(key,value) in import">
<td><span id="myspan">{{value}}</span></td>
<td style="padding:10px;">
<select name="repeatSelect" id="repeatSelect" ng-model="data" class="form-control">
<option ng-repeat="(key,value) in mapping" value="{{value}}">{{value}}</option>
</select>
</td>
</tr>
</table>
</div>
<script>
$(document).ready(function () {
$('#myspan').on('click', function () {
alert('hit it')
})
})
</script>