You need to sign in to do that
Don't have an account?
sfdc@isha.ax1814
send parameters from page(jquery) to controller
Hi Team,
I have below vfpage code. iam getting value of daterangevalue onclick action in jquery. i need to send this value to controller after click on save . they are already using the commandlink in the code.
i tried with param but iam geeting blank value in the controller
<input name="dateRangeSelect" id="dateRangeSelect">
<img src="{!$Resource.Downarrowimage}" width="8" height="8" style="margin-left:-16px;margin-top:-2px;position: relative;"/>
</input>
<output id="outputid" type="text" value="daterangevalue1"/>
<script>
$("#dateRangeSelect").daterangepicker({
open: function(event, data) { },
change: function(event, data) {
$("li.ui-menu-item").click(function(){
console.log($(this).text());
$("#outputid").val("Date range : "+$(this).text());
var dtr= ($(this).text());
alert(dtr);
});
<apex:commandLink status="renderLightningSpinner" action="{!saveSettings}" value="Save" reRender="pgMsgPnl" title="Save Setting" style="width:25px;height:25px;" />
regards,
Isha
I have below vfpage code. iam getting value of daterangevalue onclick action in jquery. i need to send this value to controller after click on save . they are already using the commandlink in the code.
i tried with param but iam geeting blank value in the controller
<input name="dateRangeSelect" id="dateRangeSelect">
<img src="{!$Resource.Downarrowimage}" width="8" height="8" style="margin-left:-16px;margin-top:-2px;position: relative;"/>
</input>
<output id="outputid" type="text" value="daterangevalue1"/>
<script>
$("#dateRangeSelect").daterangepicker({
open: function(event, data) { },
change: function(event, data) {
$("li.ui-menu-item").click(function(){
console.log($(this).text());
$("#outputid").val("Date range : "+$(this).text());
var dtr= ($(this).text());
alert(dtr);
});
<apex:commandLink status="renderLightningSpinner" action="{!saveSettings}" value="Save" reRender="pgMsgPnl" title="Save Setting" style="width:25px;height:25px;" />
regards,
Isha