Skip to main content

Bug Tracker

Side navigation

Ticket #7006: script.js
File script.js, 0.3 KB (added by Dashu, September 06, 2010 01:37PM UTC)

the script file for the demonstration

"use strict";
$('document').ready(function() {

	var clone;

	$('#clickme').live('click', function()  {
		clone = $('#tablerow').clone();
		clone.find('#someInput').val('something different');
		alert('cloned input value: '+clone.find('#someInput').val());

		alert('cloned inner html: '+clone.html());
	});

});

Download in other formats:

Original Format