Ok so I'm building a photo frame designer. On it I want it so that when a pattern is clicked it fills the text with the pattern. I have achieved this using .addClass. Problem being that my .addClass stops my .css from working. Also I can't reclick it. To see what im talking about see here
Here is my code
$("#pattern1").click (function() {
$('.text').addClass('background1');
});
$('#purple').click (function() {
$(".border").css("fill", "#a077a6");
});
Please don't ask for a js fiddle. Just use the website.
Your words here
` body-Tag which should not be there.. – Bernd Sep 26 '14 at 12:20