Skip to main content

Search and Top Navigation

#10759 closed bug (notabug)

Opened January 16, 2015 02:28AM UTC

Closed January 16, 2015 05:32PM UTC

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

}

});

});

Attachments (0)
Change History (2)

Changed January 16, 2015 04:10AM UTC by scottgonzalez comment:1

owner: → krishna
status: newpending

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

Changed January 16, 2015 05:32PM UTC by scottgonzalez comment:2

resolution: → notabug
status: pendingclosed

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