弹出窗口中有一个元素<a class="btn pull-right"> Create<a>
,我想要访问该元素throigh jquery或angularjs.以下代码导致undefined.why?模态弹出窗口的标识为mymodal
$scope.func1 = function (issuekey) {
var modalInstance = $modal.open({
templateUrl: /someapi,
controller: 'editctrl',
windowClass: '',
backdrop: 'static'
});
};
applicationControllers.controller('editctrl', ['$scope', '$modalInstance', '$http', function ($scope, $modalInstance, $http) {
console.log($(".btn.pull-right").html()); //undefined
console.log($("#mymodal").html()); //undefined
};