I want to copy the background-color value and paste it in within the <strong> tag:
<span class="swatch" style="background-color: #d1f2a5;"><strong>paste here</strong><em></em></span>
There will be multiple instances to copy/paste.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If I got your question correctly, you’re looking to programmatically insert the value of the background-color into the
<strong>, right? – Working fiddle hereP.S.:
rgbToHex()is blatantly stolen from here – all credit goes to nickf.