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.