05-03-2011, 05:56 PM
|
#14 (permalink)
|
|
The Acquainted
Join Date: May 2009
Posts: 178
Thanks: 9
|
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:left; width:100%; display: none;}
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.
|
|
|
|