Click here to Skip to main content
15,902,854 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a div..and want to make its width changeable by client using javascript
please help me out
Posted
Updated 24-Jan-12 3:51am
v2

Thank you for your question.


function yourFunctionToChabgewidth()
{
  var oDiv = document.getElementById('yourDivId')
  oDiv.style.width='100'; //your width
}



Thanks,
Mamun
 
Share this answer
 
 
Share this answer
 
Comments
fjdiewornncalwe 24-Jan-12 9:51am    
+5. Nice links.
Espen Harlinn 24-Jan-12 9:54am    
Thank you, Marcus :)
thatraja 24-Jan-12 9:59am    
1st one is good one, 5!
Espen Harlinn 24-Jan-12 10:02am    
Thank you thatraja :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900