[jQuery] Re: .html(val) not working properly in IE6 - suggestions?

2008-02-12 Thread Slantedview
append() > > $("#myDivId").empty(); > > $("#myDivId").append(val) > > maybe that will work better? > > --Karl > _ > Karl Swedbergwww.englishrules.comwww.learningjquery.com > > On Feb 11, 2008, at 7:54 PM, Slantedview wrote: > > > &g

[jQuery] .html(val) not working properly in IE6 - suggestions?

2008-02-12 Thread Slantedview
I have a Div tag whose contents I'm trying to wipe out and replace with stuff retrieved via an ajax call. Everything works fine, except in IE6, where when I try to wipe out the contents of my div tag, nothing happens: $("#myDivId").html(""); The .html(val) call works fine in IE for some pages, b

[jQuery] Dynamic form field changes aren't POSTed

2007-11-09 Thread Slantedview
I'm using JQuery to, among other things, dynamically create and modify form input elements in response to events. I've noticed though, that whenever I do this, any newly created inputs or changes to existing inputs don't make it through when the form is POSTed. Example: $(function(){ $("#

[jQuery] Re: Dynamically created input/button not responding to click event

2007-11-06 Thread Slantedview
like this: > > $(function(){ > $(".removeButtonClass").livequery('click', function() { > alert("handler worked"); > }) > > }) > > On Nov 5, 6:38 pm, Slantedview <[EMAIL PROTECTED]> wrote: > > > > >

[jQuery] Re: Dynamically created input/button not responding to click event

2007-11-06 Thread Slantedview
Thanks for the response. I'm all for doing things a better way. On Nov 5, 7:22 pm, "Mike Alsup" <[EMAIL PROTECTED]> wrote: > > var removeButton = document.createElement("INPUT"); > > removeButton.type = "button"; > > removeButton.value = "Remove"; > > $(removeButton).addClass("removeButtonClass")

[jQuery] Dynamically created input/button not responding to click event

2007-11-05 Thread Slantedview
I'm using javascript and Jquery to dynamically create an input button and attempt to respond to a click even for that button. Unfortunately, I can't get the click handler to work. I am creating the button like this: var removeButton = document.createElement("INPUT"); removeButton.type = "button";