-1
に私がjqvamp
プラグインを使用していると私は(別のボタンをクリックして)動的にselectedColor
プロパティを変更したいと思いますが、私はどのようにそれを把握することはできません。変更selectedColorは動的jqvamp
に私がjqvamp
プラグインを使用していると私は(別のボタンをクリックして)動的にselectedColor
プロパティを変更したいと思いますが、私はどのようにそれを把握することはできません。変更selectedColorは動的jqvamp
var your_variable = "";
// solution 1
// by click
$('#your_button').click(function(){
your_variable= target_color;
// run the initialization again
test();
});
function test(){
set = $('#map').vectorMap({
//...code
selectedColor: your_variable
//...code
});
}
// solution 2
$('#your_button').click(function(){
$('#map').vectorMap("set", "selectedColor", your_variable);
});
これは
私はjqvamp' 'については考えているが、あなたはJSを使用してそれを達成することができ、私はサンプルコードを書くことができます動作します希望 – Ramkee