[jQuery] clone of div

2010-01-01 Thread CreativeMind
i have a parent div with 10 divs and other controls as childrens.. now i've a button which is used to create another parentdiv with all childrens. how can i insert the similar code on each click like .. -the button click should insert the same thing $("#btn").click(function(){ ???.

[jQuery] Jquery clone, doesn't clone

2009-11-29 Thread Thomas V
I'm using a plugin contextmenu and I want to be able to copy elements that are dynamically created, but somehow it doesn't clone, it uses the same element when I paste. $.post("actions.php", { action: 'getCal', from: dFrom, to: dTo }, function(data){ cals = data.split(";;")

[jQuery] clone and append elements across window in IE Bug

2009-10-23 Thread mike
I have a parent window. The parent window creates a child window. I then want to clone an element from the parent window, and then append the clone to the child window. I can get this to work in Firefox, but not in IE. I hear that IE has some restriction where you can't move elements across docu

[jQuery] Clone value of input box by the ID

2009-09-10 Thread PIT_777
Hi, i want to get value from pole_a, and next set this to pole_b when i see that value of pole_a was change. i know how to do it in clean JS, but i want to do it in jquery. Does anywane know how to do it? //

[jQuery] jQuery: Clone Event Handlers (objects)

2009-08-31 Thread West
Hello. What I want to do: - use dyndatetime calendar (+ time) for multiple items, some of them cloned From a + b + c + to a calendar - a calendar - c calendar - b calendar - The problem is that I cannot apply 'jQuery ( "input.dateField" ).dynDateTime();' for the cloned objects since I cann

[jQuery] clone() + Sortable and Draggable

2009-07-16 Thread rejome
Hello everyone ! I am facing a strange problem here : http://rejome.homeip.net:8080/prototype.html When I clone a list that is part of a Sortable, the Draggable objects are not bound to the cloned list, only the original one. Do you have a solution or a hint for me please ? Thanks in advance.

[jQuery] Clone and Replace

2009-07-13 Thread Nate
I have a table that is dynamically populated by PHP and MySQL. At the bottom, I've created an empty table row: I have a jQuery function that posts data to a PHP file. When the PHP file returns "true", I want it to clone that emtpy table row, and then manipulate it by giving the table row an ID

[jQuery] Clone w/ New Data

2009-07-13 Thread Nate
I have a table set up like so: Group Name Options I'm using Impromptu to pop up a message when you click "Add New Group". You type in the group name, and then submit. It posts to a PHP file, and then returns that posted info in JSON format. How do I put in that data that is returned

[jQuery] clone(true) events are losing when manipulating cloned html

2009-05-24 Thread Arif
Hi, Can we manipulate clone() html before append() without losing events? Let me explain it further. I am cloning a set of html with the buttons action, it works fine. But I need to manipulate the cloned html, actually I increment a function parameter using replace(), it does work but lose the

[jQuery] Clone html and change input value

2009-05-13 Thread rmfjcr
Hi everybody. I've got a form where users can insert ingredients (name, quantity) for recipes. as they need more couples to store all the ingredients, they use the "add ingredient" link to obtain another couple of input fields. Here comes the problem: I need to increment the value of the hidden in

[jQuery] Clone div, it's child elements and increment name values.

2009-05-09 Thread vruz
1 2 3 Option Type Select Type Option 1 Option 2 Option 3 where the two select option_number[0] and option_type[0] become option_number[1] and option_type[1] and can be passed as unique fields. I've tried with jquery clone but I get identical divs with identi

[jQuery] clone of an element to be dropped draggable

2009-03-08 Thread mark
hi i want to a clone of an element to be dropped and dragged. i am using the standard jquery 1.3 and jquery ui 1.7. i tried the helper clone option. it creates a clone when dragged, but when it is dropped it just reverts back to the original position. but i want a clone also to be dropped. for ex

[jQuery] .clone a form

2009-03-05 Thread bstoppel
Hi All. I am having an issue with cloning a form. When I clone an existing form, only the input tags are cloned. Here is an example" -- HTML -- JQuery $('#clonehere').append($('.hook:first').clone(true).html()); -- Result #clonehere will only get this part of the form What am I doi

[jQuery] Clone Line and Increase Number by +1

2009-02-25 Thread stephen
Hello, I relatively new to Javascript in general, but I've been attempting to use jQuery for a while, I ran into a snag today and I hope someone can help, here is what I have so far: var id = $('#invoice_line_item_rows .item.description textarea').attr ("id") $("#add_line").click(function() {

[jQuery] Clone with Select values copied

2009-02-18 Thread happs74
Hi, I had an issue with the clone() function in that it wasn't copying over select values. I've added this function to my page function cloneForm(id, withEvents) { var clone = $('#'+id).clone(withEvents); var selvals = []; $('#'+id+" select").each(function() { selvals.push($(this).va

[jQuery] clone form information

2009-02-16 Thread David .Wu
sometimes we have two form that almost the same fields, so we will give client a clone button if the information is complete the same, this is how I do now, is there any easy way to accomplish that? http://www.w3.org/1999/xhtml";> clone form