fahad ashraf
Well-known member
Hello,
I want to change url every time when i click on overlay just want to add a parameter on url i doing it on this way
On first click he change url but on second link it does not update parameter use old value on parameter any one please help how i can fixed it
Thanks
I want to change url every time when i click on overlay just want to add a parameter on url i doing it on this way
Code:
<xf:button
href="{{ link('forums/bin-chacker') }}"
data-base="{{ link('forums/bin-chacker') }}"
data-xf-click="overlay"
id="bin-btn"
data-cache="false">
{{ phrase('Go') }}
</xf:button>
<xf:js>
$( document ).ready(function(e) {
$("#bin-btn").on("click", function() {
var bin=$("#bin").val();
var link = $(this).data('base');
$(this).attr("href", link + "&bin="+bin);
});
});
</xf:js>
On first click he change url but on second link it does not update parameter use old value on parameter any one please help how i can fixed it
Thanks