Jquery to fill Textarea using jquery textfill to its full height not working
Dear Sir
Jquery to fill Textarea using jquery textfill to its full height not working
Jquery
I am referring to web p
a
ge
where in
html part
- <div class="s-12 l-12 " style="padding-left:0px;" >
- <div class="s-12 l-12 " style="padding-right:10px;" >
- <div class="s-12 l-6 arhabout" align="center" style="padding-right:10px;" >
- <img src="<?php echo $rows['actualimage'];?>" ></div> <!--arh image -->
- <div class="s-12 l-6 arhabout " align="justify" id='aarh' > <!--arh text -->
- <?php echo $rows['detail'];?>
- </div>
-
- </div>
- </div>
Jquery to sent height of class "arhabout" of same height
in short JQUERY set height of image and text to same height
- $('#aarh').css('background-color','#DBEBBC'); <!-- dummy coluring of text part check the height is same -->
- var maxHeight=0;
- $('.arhabout').each(function() {
- maxHeight = Math.max(maxHeight, $(this).height());
-
- }).height(maxHeight);
This works fine refer following snap shot
After this I tried which is not working pls help
- $(function() {
- $('#aarh').textfill({
- maxFontPixels: 0
- });
- });
- <div class="s-12 l-6 arhabout" align="center" style="padding-right:10px;" >
- <img src="<?php echo $rows['actualimage'];?>" ></div> <!--arh image -->
- <div class="s-12 l-6 arhabout " align="justify" id='aarh' > <!--arh text -->
- <?php echo $rows['detail'];?>
- </div>