Textbox Values: Car= Red , Pro= 1236
I am looking to display the result like this: red,1236
function makeCheckBox(cell)
{
cell.innerHTML = '<input id="sbt" type="submit" name="Submit" value="Ship" onclick="blnk(car.value+pro.value)" />'
}
Display Like: Red1236
function makeCheckBox(cell)
{
cell.innerHTML = '<input id="sbt" type="submit" name="Submit" value="Ship" onclick="blnk(car.value +','+ pro.value)" />'
}
Display Like: I get an object error.
the blnk function is:
function blnk(str)
{
alert(str)
}
I have tried pretty much everything, with no luck, Anybody have any idea's
I need it to pass the values separated with a comma.
Red,1236
I am looking to display the result like this: red,1236
function makeCheckBox(cell)
{
cell.innerHTML = '<input id="sbt" type="submit" name="Submit" value="Ship" onclick="blnk(car.value+pro.value)" />'
}
Display Like: Red1236
function makeCheckBox(cell)
{
cell.innerHTML = '<input id="sbt" type="submit" name="Submit" value="Ship" onclick="blnk(car.value +','+ pro.value)" />'
}
Display Like: I get an object error.
the blnk function is:
function blnk(str)
{
alert(str)
}
I have tried pretty much everything, with no luck, Anybody have any idea's
I need it to pass the values separated with a comma.
Red,1236