Javascript, hide paragraph
Posted by mkhairul - August 6, 2008 at 04:08:58 pm -Categories: Development, Troubleshoot
While I was developing a new app for use here at work. I tried to use javascript to hide an element and all of its contents.
JAVASCRIPT:
-
function show_new(id_name)
-
{
-
$('#category').hide();
-
-
return false;
-
}
To hide this html stuffs
HTML:
When I click on the link "NEW CATEGORY", it executes the javascript function but the only thing that it hides is the label. Everything else stays. I thought there was a duplicate or some shit, but no, there's none. Then I remembered that you cannot put block elements inside an inline element (thanks to weekly check using w3cvalidator on my blog).
August 6, 2008 | In Development, Troubleshoot |
No Comments yet »
RSS feed for comments on this post. TrackBack URI
Leave a comment
Powered by WordPress with GimpStyle Theme design by Horacio Bella.
Entries and comments feeds.
Valid XHTML and CSS.
