Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
Developer
Posts: 435
Registered: ‎09-20-2011
My Device: Z10 LE, Playbook, DevAlpha C, 9900, 9380
My Carrier: Vodafone

How to dynamically change the css property of jQuery Mobile.

Hi all,

       I am developing an application and im using jQuery mobile for the UI. Did any body know how to change the css of listbox dynamically  using js. The static code snippet is below:

 

<ul data-role="listview" data-theme="g"> <li><a href="acura.html">Acura</a></li> <li><a href="audi.html">Audi</a></li> <li><a href="bmw.html">BMW</a></li> </ul>

 

Trusted Contributor
Posts: 166
Registered: ‎12-09-2011
My Device: 9550,9300,9800,9700,9900,9850,9860

Re: How to dynamically change the css property of jQuery Mobile.

Hi Sumi,

Use the code wirtten below:

$('.container').css({
						'min-height' : (screen.height - 139) + "px",
					});

 The above is the example code...

 

Thanks & Regards,
Nitish Subudhi

Feel Free To Press The Like Button On The Right Side To Thank The User That Helped You.
Please Mark Posts As Solved If You Found a Solution.