If a color string is a number, then we can use a RegExp to check if it\'s a valid CSS color. But what if it\'s a word?
RegExp
I have code that generates contro
$(funtion(){ var obj = $("p"); var ex = $(obj).eq(1); $("button").click(funtion(){ alert(obj); }); });
Does this solve the problem?