I have a simple code that puts a value into a field, I tested it with some values like string but I wanted to put a value on it from a variable.
var resp = x.responseText;
resp = resp.replace('<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">',"");
resp = resp.replace('</string>',"");
alert(resp);
chrome.tabs.executeScript(tab.id,{code: "document.getElementById('MaxBidId').value = resp"});
My code works with i give it with a string value "", but i dont know how when it comes to setting it with the variable value.