[jQuery] Re: Basic help with selectors

2009-10-27 Thread Simon Morris
On Tue, 2009-10-27 at 09:11 -0700, MorningZ wrote: > $("a[id=^='toggle_effect_button']").click(function() { > var id = this.id.replace("toggle_effect_button", ""); > $("#toggle_effect" + id).toggle('blind',500); > return false; > }); Thanks MorningZ, A small correction is

[jQuery] Basic help with selectors

2009-10-27 Thread Simon Morris
Hello, I'm new to jQuery and would appreciate some help with Selectors. At the moment I know enough to write some clunky repetitive code that violates the DRY (Don't Repeat Yourself) principle // Toggle Divs $("a#toggle_effect_button").click(function(){

[OFFLIST] [jQuery] Re: append()

2009-10-13 Thread Simon Morris
On Tue, 2009-10-13 at 16:46 +0300, Evgeny Bobovik wrote: > use function insertAfter(); or insertBefore(); >Gk___ > That's perfect, thanks very much. ~sm

[jQuery] append()

2009-10-13 Thread Simon Morris
Hello, I'm having some problems understanding the append() function. What I'd like to do is select an element using it's ID and add a row to the table with a HTML form element. The table is dynamically generated using a Django template ( form.as_table() ) so I'm not able to alter the original H