Click here to Skip to main content
15,891,136 members

Comments by Rajni from delhi (Top 33 by date)

Rajni from delhi 29-Oct-15 3:14am View    
still not ..getting the height $('#MainDiv').height()); = 0 ..dn't know why it's not giving when using doc.ready
Rajni from delhi 28-Oct-15 7:41am View    
yah.. fine for me
Rajni from delhi 28-Oct-15 7:36am View    
No.... undefined is coming.now my code Looks like
<div class="border_box" ng-style="getHeight('#MainDiv')"></div>
<div id="MainDiv">
<div id="ObjAccordian" ng-repeat="guide in GuideDetails" init="refresh();">
---my code
</div>
<div>

$scope.getHeight = function (selector) {
var element = $(selector); //You will prolly need to get the first item
alert(element.offsetHeight);

return "height:" + element.offsetHeight + ";"; //undefined is coming
};
Rajni from delhi 28-Oct-15 6:42am View    
Hi,
I want to get the height of Maindiv which dynamically set according to the Ng-repeat element counts. and then set that height to Borderbox div.
you do the reverse of it.I am not able to get the height of Maindiv which is coming 0px.
Rajni from delhi 9-May-14 6:11am View    
ok .. so can u please provide me the regular expression to check just special characters .
allowed characters are @,#,$,%,(,),- and _