View Single Post
Old 05-03-2011, 05:56 PM   #14 (permalink)
captainmerton
The Acquainted
 
captainmerton's Avatar
 
Join Date: May 2009
Posts: 178
Thanks: 9
captainmerton is on a distinguished road
Default

Going to assume the browser supports it. Still having problems however when i try and unhide the class. Here's the main pieces of code:

PHP Code:
<div id='editmypicturesclick'>Edit</div>

<
span class='editmypictures'>Delete</span>

<
script>
document.getElementById('editmypicturesclick').onclick = function (e) {
    
document.getElementByClass('editmypictures').style.display 'block';
};
</script> 
And here's the CSS:

PHP Code:
.editmypictures {float:leftwidth:100%; displaynone;} 
When i change the CSS display style to Block then the Delete text appears. Its the onclick on the Edit text that doesnt seem to work. Any ideas?

By the way - many thanks for the help thus far Tony.
captainmerton is offline  
Reply With Quote