I have a javascript with functions for the editor which input items into a textarea like thus:
function centerw(input) {
var obj=document.getElementById(input)
obj.value+="#wrapper{ margin:10px auto; width:INSERT IMAGE WIDTH;}"
}
what I am trying to do is from this popup (which is just a hidden div with a form).function toggleDiv(divid){
if(document.getElementById(divid).style.display == 'none'){
document.getElementById(divid).style.display = 'block';
}else{
document.getElementById(divid).style.display = 'none';
}
}
replace the INSERT IMAGE WIDTH with what they entered into the popup. I tried $_GET blah blah but that just inserts the $_GET and I am stumped on how to get the info from the popup and place it where it says INSERT.Naturally I had the $_GET where is says INSERT but no idea on how to get the popup data and place it in the textarea along with the other info.
Anyone know please?
