I am trying to make my page dynamic, when check I want my Biz Fileds to
display when uncheck I want my Individual fileds to dispaly, but it does
not work.
Can some one point me in the right direction?
<form class="form" role="form">
<div class="form-group">
<label data-ng-label="Is Business"> </label>
<input id="idLND_BusinessCheckbox" type="checkbox"
class="checkbox" data-ng-model="BT_isBussiness"
data-ng-checked={{BT_isBussiness}}
style="float:left" data-ng-true-value=true data-ng-false-value=false />
<label
for="idLND_BusinessCheckbox" style="float:left">Business</label>
</div>
</form>
$scope.DisplaySelectedLender = function (idx)
{
var cnt = $scope.vm.model.LenderCount;
if (idx <= cnt) {
var _selIdx = idx - 1;
var _morgages = vm.model.Lenders;
var _mort = _morgages[_selIdx];
if (_mort.IsBusiness) {
$scope.$evalAsync(
function ($scope) {
$("#idLND_BusinessCheckbox").attr('ckecked',
true);
$("#idLND_BusinessCheckbox").change();
});
}
else {
$scope.$evalAsync(
function ($scope) {
$("#idLND_BusinessCheckbox").attr('ckecked',
false);
$("#idLND_BusinessCheckbox").change();
});
}
}
else
{
alert("Their are no morgages defined. please enter your
information then update the current mortgage.")
}
};
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.