Get value of element
var variable_name = document.getElementById("elements_id").value;
Set style of element
document.getElementById("elements_id").style.<property> = "new_style";
var variable_name = document.getElementById("elements_id").value;
document.getElementById("elements_id").style.<property> = "new_style";