You can pass arguments to your function where you call window[aa]()
like so:
function myfunction(text){
alert(text);
}
var aa= "myfunction";
window[aa]("Hello Again..."); // just put any arguments in the parentheses.
More Related Contents:
- How to use FormData for AJAX file upload?
- Handle file download from ajax post
- jQuery/JavaScript to replace broken images
- Print the contents of a DIV
- convert base64 to image in javascript/jquery
- Smooth scroll to div id jQuery
- Fire jQuery event on div change
- How to use source: function()… and AJAX in JQuery UI autocomplete
- How to scroll to top of page with JavaScript/jQuery?
- How to detect scroll position of page using jQuery
- How to use jQuery to select a dropdown option?
- How to get current date in jQuery?
- Why “$().ready(handler)” is not recommended?
- knockout data-bind on dynamically generated elements
- How can I use JSON data to populate the options of a select box?
- jQuery JSON looping through nested objects
- function in setInterval() executes without delay
- How to check in js that user has checked the checkbox in Google recaptcha?
- Alert for unsaved changes in form
- new Image(), how to know if image 100% loaded or not?
- How to improve rendering performance when using $.html()
- jQuery Youtube URL Validation with regex
- AngularJS : ng-model binding not updating when changed with jQuery
- how to read json result in jquery?
- How to change tabs programmatically in jquery-ui 1.9?
- Trigger for span text/html on changed
- How to add a onclick event to an element using javascript
- Test if an element can contain text
- unable to load xml from external file using jQuery
- How to force input to only allow Alpha Letters?