Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa JavaScriptQuestions To make toggle by default hidden
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


nikita anand
To make toggle by default hidden
1 Answer(s)      2 years and 8 months ago
Posted in : JavaScript Questions


i have done this coding in javascript.

<script type="text/javascript">
$(document).ready(function(){
$("#pw1").click(function(){
$("#1").toggle();
});
});
</script>
<a href='#' id="pw1">Comments</a>
<p id=1></p>

by default toggle is "shown"..but i want it by default "hidden"..

Wat should i add in this coding?


Advertisement
View Answers

May 5, 2012 at 12:39 AM


not able to post code..!!!!!so jst posting worn and torn kind of..

anyhow plz tel me a simple example of toggle in which it is by default hidden

$(document).ready(function(){ $("#pw1").click(function(){ $("#1").toggle(); }); });

---nikita anand



Related Tutorials/Questions & Answers:
To make toggle by default hidden
To make toggle by default hidden  i have done this coding... toggle is "shown"..but i want it by default "hidden".. Wat should i add... kind of.. anyhow plz tel me a simple example of toggle in which it is by default
Interaction Helpers: toggle( ) and hover( )
Interaction Helpers: toggle( ) and hover( )       Interaction Helpers: toggle( ) and hover( ) .toggle( ) This method binds two or more handlers
Advertisements
Hidden Comment
Hidden Comment  What is a Hidden Comment ?   Hi, Hidden... to the client. The JSP engine ignores a hidden comment, and does not process any code within hidden comment tags
Hidden Program
Hidden Program  Hello Sir/Madam, I need to know how many files are hidden in a folder or drive using java program
div overflow hidden
div overflow hidden  How to make div overflow hidden? Thanks   Hi, Here is the code: <div style="widht:200px; height:600px; overflow:hidden;"> </div> Thanks
Test hidden element using JQuery
Test hidden element using JQuery  Suppose i have an element which i am hiding and showing, using .hide(), .show() or .toggle().How do you test to see if that element is currently hidden or visible on the screen? Please provide
jQuery Toggle the Div
jQuery Toggle the Div       In this JQuery tutorial we will develop a program that toggle the content of a Div Steps to develop the Toggle of a Div . Step 1:       Create
Sending hidden values
Sending hidden values  how to send more than one hidden values through javascript function . Main purpose is to remove href link (Query string should not appear in url bar
javascript value to hidden input
javascript value to hidden input  How to take input for the hidden fields in JavaScript?   $(".Search").keyup(function() { var id = this.id; $('#'+id+'Temp').val($(this).val
how can i use toggle button in my application
how can i use toggle button in my application  i want a on/off toggle button by dragging left-right..not by pressing on button
stop the running hidden server
stop the running hidden server  Port 8080 required by Tomcat v6.0 Server at localhost is already in use. The server may already be running in another process, or a system process may be using the port. To start this server you
Show a hidden frame previously from another from
Show a hidden frame previously from another from  How can i show a hidden frame previously by this code: jframe_name.hide(); and make it visible from another frame i'm waiting for the answer, and i'll be thankfull
Toggle hide/show by clicking same button
Toggle hide/show by clicking same button In this tutorial, we will discuss about how to toggle hide/show by clicking button. In the given below 2 example...; <body> <button>Click to Toggle Text</button> <p>
Default Package
Default Package  Can we import default packages???   Yes, you can import the default packages. But there will be no error or exception, if you will not import default packages. Otherwise, importing packages is must
Hidden Tag <html:hidden>:
Hidden Tag <html:hidden>:       This tag facilitate  an HTML <input> element of type hidden... and press submit button and see the output. Output displays the hidden fields
Hidden Jewels of Kerala
Hidden Jewels of Kerala Destinations Covered: Guruvayoor- Vythiri/Wayanad- Kozhikode Duration: 07 Days /06 nights of Hidden Jewels of Kerala Day 01... Tour of Kerala On the second day of your tour to hidden jewels of Kerala, have
Hidden Form Fields
Hidden Form Fields          Hidden form field is used to maintain the session. It is one of the way to maintain the session. In hidden form fields
Java Servlet : Hidden Field
Java Servlet : Hidden Field In this tutorial, we will discuss about Hidden Field. It is one of session tracking technique. Hidden Field : Session... for a specific time period. You can maintain session tracking in three ways - Hidden form
How to check a file is hidden or not in java
Description: This example demonstrate how to check a file is hidden at a given... hidden property of a file. As in the file path we see '\' (backslash... on the file have hidden property at the specified path that is set in the program
COMMENT & HIDDEN COMMENT IN JSP
COMMENT & HIDDEN COMMENT IN JSP In this section , we will learn how to implements comment & hidden comment in JSP. COMMENT : Comment generates... -->   HIDDEN COMMENT : The hidden comment included in the JSP page
how to store dynamic array in hidden field in javascript?
how to store dynamic array in hidden field in javascript?  I have... to store it in a hidden field for passing it to the jsp page. so any one help me in how to store it in hidden field
how to get the anchor field in hidden field tag
how to get the anchor field in hidden field tag  I have a following code I need to have the value of property "emp" in a hidden field also. when i try to put the following code, I cant get the hidden tag when i see the source
java serializable default constructor
java serializable default constructor  java serializable default constructor
is set interface synchronize by default???????
is set interface synchronize by default???????  is set interface synchronize by default??????? an whether list is syncrhronized by default
ipad default image names
ipad default image names  i have a problem while launching application in iPad. The Default image that i have set is not displaying in landscape mode correctly. please suggest. Thanks.   ipad Default image names
MySQL Default Port number
MySQL Default Port number  HI, What is MySQL Default Port number? Thanks   Hello, MySQL Server Default Port number is 3306. Thanks
Which package is imported by default?
Which package is imported by default?  hi, Which package is imported by default? thanks   hi, It is very important to know Which package is imported by default? The java.lang package is imported by default even
Default Values
Default Values The elements which do not have any children can have default values. Default values are assigned automatically if no value is supplied... to specify a default value. If the element appears in the document with content
Reset checkbox style to default
Reset checkbox style to default  Reset checkbox style to default   input[type="checkbox"] { /* styles
Actions Threadsafe by Default - Struts
Actions Threadsafe by Default   Hi Frieds, I am beginner in struts, Are Action classes Threadsafe by default. I heard actions are singleton , is it correct
java default constructor
java default constructor  suppose i hava a class: public class... be the default constructor: 1) public Student(){ private int rollNo = 0; private... the space in memory and initializes the fields. So, in the default constructor you can
 

 

 

DMCA.com