[jQuery] Autocomplete plugin not working with $.ajax?

2009-11-17 Thread Teddy Hong
here the code // if I type like below code, auto complete it's show.. $('#edit-submitted-order-no').autocomplete([one,two,three]); // but if I type like below code, auto complete not showing... why? anybody can help?... thanks $.ajax({ type: POST, url: test.php, success:

[jQuery] How to add some string in attributes?

2009-09-28 Thread Teddy Hong
If I have a tag image like this.. img alt=My Account src=/images/menu-my-account.png/ and when hover that image I want became like this img alt=My Account src=/images/menu-my-account-hover.png/ How to code this with jquery? Thanks