[jQuery] Re: How to call jQuery function inside a DOM

2009-03-22 Thread mdjamal
Hi, Thanks for the shorthand tip, what I was trying to achieve is upon sucessful validation call a function, its not a plugin. Its another function written inside the DOM. I tried adding the live syntax and it works the way I want it to but not sure if I have coded it right, code reproduced below

[jQuery] Re: How to call jQuery function inside a DOM

2009-03-21 Thread Josh Powell
While not what you were asking, remember that you can chain. var name = $("#label"); var nameInfo = $("#nameInfo"); name.blur(validateName).keyup(validateName); ... nameInfo.text("We want names with more than 3 letters!").addClass ("error"); Then: $('#addPhoneExt').click(tb_remove); sets an on