Click here to Skip to main content
15,909,324 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
sir,
how can i get the values used in css to jquery.if any one knows please help me
Posted

1 solution

Please elaborate your requirements.

what the values that you want to get.


//set css
$("p").css({ color: "#ff0011", background: "blue" });

//get css
$("#id").css("z-index")

If you still hava any question or need any help,send message to me .
 
Share this answer
 
Comments
vineethnair 24-Jul-13 4:28am    
sir,
iam new in asp.net.if we set the width of anything in css.sir,how to get this value to jquery
Chui PuiKwan 24-Jul-13 4:46am    
$("p").width();
Chui PuiKwan 24-Jul-13 4:48am    
You must understand that you must firstly select a element that you want to control,
and then get or updata this element's attribute.
vineethnair 24-Jul-13 5:20am    
thanks sir

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