通过jquery或AngularJS访问模式实例html

时间:2015-07-09 11:57:49

标签: jquery angularjs

弹出窗口中有一个元素<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           

};

0 个答案:

没有答案
相关问题