Share on Google+Share on Google+

nikita anand
To make toggle by default hidden
1 Answer(s)      4 years and 11 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?

Ads

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
How to change color of opened Bootstrap drop down toggle?
How to change color of opened Bootstrap drop down toggle?  HI, On click of the item in the bootstrap based menu a toggle drop down appears. How...: .navbar-default .navbar-nav .open .dropdown-menu>li>a,.navbar-default
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
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
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
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
Tutorials   
Java Spring Hibernate Struts Training code for programming How can I dynamically load user-entered data as content of jquery dialog? java webcam integration question java coding Fix Scrollbar position in a checkboxList after postback Information Save Alert Country wise redirection to files Interface in javascript connect database with javascript Zip Code ZipCode how to validate the email login How to play FLV video files on Ipad using HTML code or javascript code? Nitobi Grid is not working in IE10/IE11 jquery issue plese help RegEx Tree structure from json whose parents can be dragged and dropped from child newyorklife insurance getElementById not working javascript code for search in html file Implement The Skeleton Code Implement This Skeleton Code Mobile Automation using Appium Computer forensic application Java: Searching a string from doc files java linked list urgent !!! java linked list urgent!!! library management library management library management library management question Html form using JavaScript to display the table content java how to prevent no from unroundin off on clicking text box again in JSP and Jquery graph generation from xml design file display data from database in textbox when id entered in textbox Javascript Code for all fields how to get HTTP GET request value using javascript array Javascript Querry autocomplete(): Spring mvc with jquery: I am not getting correct value in the text filed. Please help me Create SpreadSheet same as excel using java applet Create SpreadSheet same as excel using java applet How to change focus among multiple select boxes? Write JQUERY Code Write JQUERY Code Converting jsp variable to java variable java

Ads

 
Advertisement null

Ads