<input type="text" name="borderColor" id="myInput">
var myInput = document.getElementById("myInput");
document.getElementById('selector').style.myInput.name= "(style value)";
// want to use the .name attr after style here
Checked something about eval()
, but seems not the right thing. Please help. Thanks a lot!