Monday, October 22, 2012
Q1.
1.1me = $('#win_content_copy').find('#categoryname');
alert(me.value).text();
[ans:]its worng. text() alert-method response undefined.
1.2alert(me.text());
[ans:]its working
1.3alert(me.val());
[ans:]when we use input marksigned ,have to
Q2.time control
//sleep(4000);
//setInterval("categoryname_keydown();", 3000);
//event.timeStamp;
//setTimeout("alert ('called from setTimeout()');",4000);
Q3.when you clone a DOM element
window_content_copy = $('#window_content').clone();
window_content_copy.attr('id','win_content_copy');
window_content_copy.appendTo('#body');
is html inside script syntax
onclick='function(this)' (<---wrong)
onclick='function($(this))' (<---right)
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment