Menu
function display(){
p1=document.getElementById(“Prod”).heating.value = profile[0];
spacePos = p1.indexOf(“,”,0);
first = p1.substring(0,spacePos);
alert(first);
dosnt alert anything,
profile[0] is declared as 33,3232,3232,32
but if i declare p1 = “33,3232,3232,32”
it alerts me 33 which i want
why dosnt it alert from
p1=document.getElementById(“Prod”).heating.value = profile[0];
as i know that the assigning works from the profile array as it returns me the number 3232,323,32,32 when i do alert(p1);
thank you for your help