[jQuery] passing parameter to anonymous function ( frameready )
Hello everyone :) i'am a newcomer here :)
i have a problem with using JQuery and frameready plugin.
i need to modify dom elemen especially the css. i have a iframe in my
main document.
this is my javascript code with jquery and frameready plugin
function changeColor(evt) {
var color = evt.value;
$.frameReady(function() {
$('h2.pagetitle').css('color', color);
}, "common");
}
"common" is my iframe name
this link is about frameready plugin http://ideamill.synaptrixgroup.com/?page_id=18
i need to pass a color value that i got from here :
<input name="page_title" id="page_title" type="text" value="#2F8BCD"
size="10" maxlength="15" onfocus="changeColor(this);"/>
but the error console always showing message ' color is not defined'
thx you...