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
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
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(){
$("#
like this:
>
> $(function(){
> $(".removeButtonClass").livequery('click', function() {
> alert("handler worked");
> })
>
> })
>
> On Nov 5, 6:38 pm, Slantedview <[EMAIL PROTECTED]> wrote:
>
>
>
> >
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")
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";
6 matches
Mail list logo