lindm
11-30-2007, 08:15 PM
Need to avoid the quotes around the onclick action in my html code to to php. is this possible?
Current call
<input type="button" value="Steg 1" onclick="show('QA')"/>
Want it to be
<input type="button" value="Steg 1" onclick="show(QA)"/>
My javascript
function show(id) {
var e = document.getElementById(id);
if(e.style.display == 'block')
e.style.display = 'none';
else
e.style.display = 'block';
}
Possible?
Current call
<input type="button" value="Steg 1" onclick="show('QA')"/>
Want it to be
<input type="button" value="Steg 1" onclick="show(QA)"/>
My javascript
function show(id) {
var e = document.getElementById(id);
if(e.style.display == 'block')
e.style.display = 'none';
else
e.style.display = 'block';
}
Possible?