Quantcast
Channel: General developer forum
Viewing all articles
Browse latest Browse all 37677

How to pass parameter in YUI function

$
0
0
Azmat Ullah mukaan.  

I want to pass parameter with javascript YUI function.

view.php

//Function Call

 $PAGE->requires->js_init_call('M.block_competency.init');

module.js

// JavaScript Document

M.block_competency = {};

M.block_competency.init = function(Y) {

var action = Y.one('#id_d_id');
action.on('change', function() {
var b=action.get('value');
window.location='view.php?viewpage=8&d_id=9';
});
};

How to send and recieve value in above function?


Viewing all articles
Browse latest Browse all 37677

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>