Can we create buttons in JavaScript ? if yes how? pls provide
sample code... Thanks in advance.....
We can create in multiple ways.Here I am doing by using jquery
HTML:
<div id="target">
<button id="CreateButton">Create button</button>
</div>
JAVASCRIPT:
$(document).ready(function () {
$("#CreateButton").click(
function () { $('#target').append('<button>button created</button>')
}
);
});
Is This Answer Correct ? | 3 Yes | 0 No |
What are parameters in javascript?
Is it possible to do 301 redirects in javascript ?
How to capture the Image width and height using QTP script ? Kindly answer plz.... Thanx in adavance...
What is the difference between rootscope and scope?
Define anonymous function.
What are nodes in javascript?
What is number in javascript?
what is syntax of wapper class
what is the extension of java script.
Is javascript case sensitive language?
print the following using loop. 54321 4321 321 21 1
2 Answers Delhi Public School,
How to reload the current page?