add dynamic textbox
Posted: Wed Aug 17, 2011 12:50 am
I am new to php and i want to know to how can i add new textbox to my web page when i press tab key from keyboard the new textbox should be created and this process should go on.
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Code: Select all
$('elementId').addEvent('keydown', function(event){
if (event.key == 'tab' && !event.shift) {
event.target.clone().inject(event.target, 'after');
return false;
}
});