Is it possible to add :
script
$(document).ready(function(){
$(button).click(function () {
$(p).toggle(slow);
});
});
/script
that works for sevoral items, example, this is my menu :
button class=button style=background:transparent #33CC00News/
button
br
Or simply use the inner text, but that will cause issues if you have
spaces in it.
$('button').click(function () {
var data = $(this).text().toLowerCase();
$('p.'+data).toggle('slow');
});
On Jan 27, 3:29 pm, Mike Alsup mal...@gmail.com wrote:
Is it possible to add :
script
Should you? Well if thats the only javascript on the page there isn't
much point in including a library for something like that.
However you could do it by saying:
// jQuery's document ready
$(function() {
// grab the button and assign event
$(#Cancel).click(function() {
!-- the jQuery --
script type=text/javascript
!--
$(document).ready(function(){
$('#myButton').click(function(){
location.href='/Tag/ List?page=1';
});
});
//--
/script
!-- the button --
input type=button id=myButton
No no,
I already use Jquery for many things like: form validation,
autocomplete, etc ...
In this page I use only that and the only Javascript I have in my HTML
markup is this one in this button ... this is why i am asking this.
Thanks,
Miguel
On Jul 11, 5:50 pm, noon [EMAIL PROTECTED] wrote:
you can user unbind
$('#myButton').unbind(click)
-- Original --
From: Andy Matthews[EMAIL PROTECTED];
Date: 2008年7月12日(星期六) 凌晨00:50
To: jquery-enjquery-en@googlegroups.com;
Subject: [jQuery] Re: Button Click
!-- the jQuery --
script type=text
6 matches
Mail list logo