James92 Posted November 29, 2014 Share Posted November 29, 2014 (edited) Using JQuery have the section with id="first" suddenly appear in the browser window I did this Source Code <section id="first"> <!-- use for Ajax --> <form method="get" action="" id="add1"> <fieldset> JS Code $(document).ready(function(){ $("first").show(); }); Don't understand why it's not working :s? Edited November 29, 2014 by James92 Link to comment Share on other sites More sharing options...
niche Posted November 29, 2014 Share Posted November 29, 2014 try this http://www.w3schools.com/cssref/pr_class_visibility.asp Link to comment Share on other sites More sharing options...
dsonesuk Posted November 29, 2014 Share Posted November 29, 2014 You have set it to look for "first" element or tag, not! a element with id ref "first" in jQuery to reference id use hash "#first", and with class a period ".first" as you would for css selector. Link to comment Share on other sites More sharing options...
kodejuice Posted December 7, 2014 Share Posted December 7, 2014 (edited) <section id="first"> <!-- use for Ajax --> <form method="get" action="" id="add1"> <fieldset>JS Code $(document).ready(function(){ $("section#first").show(); }); Edited December 7, 2014 by kodejuice Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now