0

I have this input witch get it´s value from PHP.

<input id="autocomplete_obj_nr" value="<?php echo $obj_nr;?>"/>

How can i trigger Autocomplete to select that value when page is loaded?

I´ve tried:

$(document).ready(function(){
    $('input#autocomplete_obj_nr').autocomplete("select");

no such method 'select' for autocomplete widget instance

$('input#autocomplete_obj_nr').autocomplete("option", "select");

EDIT
I do not wan´t to change source. I just wan´t to trigger a select on a value added by PHP.
It works by fetching a $_GET in the URL.

5

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.