Jump to content

jQuery and autocomplete


NewPlaza
 Share

Recommended Posts

Hello,

I can not figure out how to select an item from a autocomplete box.

The funny thing is I can read all the values from the autocomplete.

$jQuery('.Suggestion').text() - Reads autocomplete suggestions......

I just don't know how to select the first item in the list.

Any help would be great.

Using (automating from) jquery-1.7.2 and jquery-ui-1.10.4.custom.

Link to comment
Share on other sites

  • Moderators

Hello,

I can not figure out how to select an item from a autocomplete box.

The funny thing is I can read all the values from the autocomplete.

$jQuery('.Suggestion').text() - Reads autocomplete suggestions......

I just don't know how to select the first item in the list.

Any help would be great.

Using (automating from) jquery-1.7.2 and jquery-ui-1.10.4.custom.

Did you post in the wrong forum?

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to comment
Share on other sites

LOL! Not at all.

My script interacts with a page from our local network and uses jquery. I've been very successful in interacting with the loaded jquery and manipulating almost all needed information (pausing while jquery is processing, read/set values/text from drop down controls, submit button clicks, etc...) I have managed to control just about everything I need... All but the autocomplete selection box.

Link to comment
Share on other sites

  • Moderators

Sorry, I was confused without a test site, visual code being used, or any reference to autoit code even lol.

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to comment
Share on other sites

SmOke_N.

I have been really successful in manipulating jquery with one liners like these...

$oIE.document.parentWindow.jQuery('.Name').text()
$oIE.document.parentWindow.jQuery('[name=fldName]').val($Name).focus().keydown().keyup()
$oIE.document.parentWindow.jQuery('.btnNumber').click().ready()
$oIE.document.parentWindow.jQuery('.ResultLoading').is(':visible')
$oIE.document.parentWindow.jQuery('select[name=Oss]').val('243').change()
$oIE.document.parentWindow.jQuery('.btnAll').click().ready()

It just that autocomplete I can't get. I just don't know the commands....

Link to comment
Share on other sites

  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...