Set equal height for programatically populated data
Dear Sir
i am using following script to align certain part of website which is programatically (CMS) poulated or generated
- $('.typeofloandetail').each(function() {
- maxHeight = Math.max(maxHeight, $(this).height());
-
- }).height(maxHeight);
- }
This script is running really good and resizes / equalise the height of elements for class
typeofloandetail
However when, i populate the very same data again using Jquery
I am using following jQuery for this purpose
- var url= "typeofloandivfill.php"
- data = {
- language: language
- };
-
- $('#typeofloandiv').load(url,data, typeofloadadjust ) ;
When I do this I loose the alignment, the height of class is not equalised
I tried
- var url= "typeofloandivfill.php"
- data = {
- language: language
- };
-
- $('#typeofloandiv').load(url,data, typeofloadadjust ) ;
-
- function typeofloadadjust()
- {
- $('.typeofloandetail').each(function() {
- maxHeight = Math.max(maxHeight, $(this).height());
-
- }).height(maxHeight);
- }
But this doesnot work