| | |
JQuery question
Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Dec 2007
Posts: 53
Reputation:
Solved Threads: 1
Two related jQuery questions.
Is there a way in JQuery to slide to a particular point such as slide 10px or slides to a DIV, the parameters passed in the functions are speed and callback.
Second questions:
I was hoping I could filter on a name with a jQuery option so that if I had a list of buttons with the following names.
I could select one with the following example statement:
Please help me with the grammar to do this.
Thanks!
Is there a way in JQuery to slide to a particular point such as slide 10px or slides to a DIV, the parameters passed in the functions are speed and callback.
Second questions:
I was hoping I could filter on a name with a jQuery option so that if I had a list of buttons with the following names.
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
<div id="myDiv2" > <button type="button" name="do1">Try Me!</button> <br /> <button type="button" name="do2">Click Me!</button> <br /> <button type="button" name="do3">Press Me!</button> </div> <!-- End myDiv2 -->
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
view plaincopy to clipboardprint? <script type="text/javascript"> $(document).ready(function(){ //if a button with a name of 'do1' is selected $(":button:do1").click(function(){ $("div#myDiv1").hide(); }); }); </script>
Thanks!
•
•
Join Date: Dec 2007
Posts: 53
Reputation:
Solved Threads: 1
I came up with this for the second question, but still no answer to the first.
Is there another/better solution?
Thanks!
WBR
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
$(document).ready(function(){ //if a button with a name of 'do1' is selected $(":button[name='do1']").click(function(){ $("div#myDiv1").hide("slow"); });
Thanks!
WBR
![]() |
Similar Threads
- Floating DIV Question (JavaScript / DHTML / AJAX)
- Please Help, New to Javascript, Basic Question! (JavaScript / DHTML / AJAX)
- PHP auto-save code (PHP)
- The Future of Javascript (JavaScript / DHTML / AJAX)
- if our webmasters here at daniweb would be so kind (Site Layout and Usability)
- New Daniweb site layout (DaniWeb Community Feedback)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: JavaScript Framework
- Next Thread: Want To get Image Changes for different Colors !
| Thread Tools | Search this Thread |
acid2 ajax ajaxexample ajaxjspservlets array browser bug captchaformproblem cart checkbox child class close codes createrange() css cursor date debugger decimal dependent design disablefirebug dom dropdown editor element embed engine enter error events explorer ext file firefox focus form forms frameworks getselection google gxt hiddenvalue highlightedword hint html ie7 ie8 iframe images index internet java javascript javascripthelp2020 jquery jsf jsfile jsp jump libcurl listbox maps masterpage math media menu mp4 object onmouseoutdivproblem onmouseover onreadystatechange parent paypal pdf php position post problem programming progressbar prototype redirect runtime safari scale scriptlets scroll search security shopping size software toggle unicode w3c web wysiwyg \n





