Here is the idea I would like to develop. I need to have an element, lets say a button. And next to it I would have various inputs that will allow user to edit button. Once user changes something I need to update preview of the button and css code of it. At the moment I am quiet confused and don’t understand how to do it.
I found this website: http://css3button.net/
It shows exactly what I need. I tried looking at source, but didn’t understand it quiet well. So basically I need a jQuery Solution to achieve same functionality as in example website (allow user to change style options, update css and preview instantly after user changes values.)
Ideally could you provide an example with your answer please, maybe simple form to change color and border of the div tag.
You can do neraly all of those with only one function .css(). Also
.attr(), .val(),.addClass()/removeClass()may usefull.Look here for DEMO
Look for DEMO2