Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Dec 03, 2012 12:04 PM by EnenDaveyBoy
Participant
1466 Points
1157 Posts
Nov 30, 2012 12:48 AM|LINK
Hi
I have an autocomplete which works, however when I select the value the value is shown in the textbox, however if I do a $('#textbox').val() the value isn't there, how do I fix this?
If I type in the full value it works without issue.
All-Star
30184 Points
4906 Posts
Nov 30, 2012 02:16 AM|LINK
Hi,
This can be a selector problem. Try $("input[id*=textbox]").val()
Dec 01, 2012 12:42 PM|LINK
no still not the same issue
Member
391 Points
188 Posts
Dec 03, 2012 09:45 AM|LINK
Refer the link it may be helpfull for u
http://www.switchonthecode.com/tutorials/jquery-tutorial-creating-an-autocomplete-input-textbox
http://www.aspdotnet-suresh.com/2012/03/jquery-ui-autocomplete-textbox-with.html
http://www.roseindia.net/tutorial/jquery/autoComplete.html
http://stackoverflow.com/questions/926575/jquery-autocomplete-textbox
Dec 03, 2012 12:04 PM|LINK
i sorted it, it was down to the way I had different JS put in different areas of the page as I was testing
EnenDaveyBoy
Participant
1466 Points
1157 Posts
issue with autocomplete
Nov 30, 2012 12:48 AM|LINK
Hi
I have an autocomplete which works, however when I select the value the value is shown in the textbox, however if I do a $('#textbox').val() the value isn't there, how do I fix this?
If I type in the full value it works without issue.
asteranup
All-Star
30184 Points
4906 Posts
Re: issue with autocomplete
Nov 30, 2012 02:16 AM|LINK
Hi,
This can be a selector problem. Try $("input[id*=textbox]").val()
Anup Das Gupta
Mark as Answer if you feel so. Visit My Blog
EnenDaveyBoy
Participant
1466 Points
1157 Posts
Re: issue with autocomplete
Dec 01, 2012 12:42 PM|LINK
no still not the same issue
Madha Dhanas...
Member
391 Points
188 Posts
Re: issue with autocomplete
Dec 03, 2012 09:45 AM|LINK
Refer the link it may be helpfull for u
http://www.switchonthecode.com/tutorials/jquery-tutorial-creating-an-autocomplete-input-textbox
http://www.aspdotnet-suresh.com/2012/03/jquery-ui-autocomplete-textbox-with.html
http://www.roseindia.net/tutorial/jquery/autoComplete.html
http://stackoverflow.com/questions/926575/jquery-autocomplete-textbox
Ragards,
Madha.V
EnenDaveyBoy
Participant
1466 Points
1157 Posts
Re: issue with autocomplete
Dec 03, 2012 12:04 PM|LINK
i sorted it, it was down to the way I had different JS put in different areas of the page as I was testing