Opened 6 years ago

Closed 6 years ago

#10759 closed bug (notabug)

jquery autocomplete is not working on second time popup for datepicker

Reported by: krishna Owned by: krishna
Priority: minor Milestone: none
Component: ui.core Version: 1.11.2
Keywords: Cc:
Blocked by: Blocking:

Description

this is my code: textboxs:

<input type="text" name="submission_from_date" placeholder="Submission From Date" class="ui-body-d datepicker" id="submission_from_date" />

<input type="text" name="submission_to_date" placeholder="Submission To Date" class="ui-body-d datepicker" id="submission_to_date" />

javascript:

<script type="text/javascript">

$("#main").bind("pageshow", function (e) {

$("#filterProperty").autocomplete({

target: $('#filterPropertySuggestions'), link: 'target.html?term=', minLength: 0, matchFromStart: true, icon:false, callback: function (e, ui) {

var $a = $(e.currentTarget); access the selected item var propertyId = $a.data('autocomplete').value; $("#filterHiddenProperty").val(propertyId); $("#filterHiddenLand").val(0); $('#filterHiddenPaymentfor').val(""); $("#filterHiddenStatus").val(0);

var apiParams = "propertyId=" + propertyId; bdPaymentfilterPage.getbdLand(apiParams);

$('#filterProperty').val($a.text()); place the value of the selection into the search box $("#filterProperty").autocomplete('clear'); clear the listview

}

});

});

Change History (2)

comment:1 Changed 6 years ago by Scott González

Owner: set to krishna
Status: newpending

This is not enough information. Please provide a usable reduced test case as described in the red box.

comment:2 Changed 6 years ago by Scott González

Resolution: notabug
Status: pendingclosed

Actually, looking at the code provided, this is clearly not jQuery UI's autocomplete widget.

Note: See TracTickets for help on using tickets.