Hi i want to move to the page number as we enter page number in textbox.
Try this sample
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> <script type = "text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script> <script type="text/javascript"> $("#btnPage").live("click", function () { $("[id*=dv]").hide(); $("#dv" + $("#txtPage").val()).show(); }); </script> </head> <body> <form id="form1" runat = "server"> <div id = "dv1">DIV1</div> <div id = "dv2" style = "display:none">DIV2</div> <div id = "dv3" style = "display:none">DIV3</div> <input type = "text" id = "txtPage" /> <input type = "button" id = "btnPage" value = "Go" /> </form> </body> </html>
Demo
Hi please reply me .
I m not able get the result.
You said you want to hide show div based on number in textbox. That's what I gave you
Hi actually My question is that i want to add such functinality in my code such that if there are 100 pages in my application then i can put the number of any page in to text box and by click on Go click i can see that page.
I m giving you link plz see this
http://jquery.malsup.com/cycle/nowrap.html
I want to add textbox functinality to this.
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.