Dear Sir
Value of selected name is filled up in field near
Shop Search
Following code is used for this
- <script type="text/javascript">
-
- $(function() {
-
- $("#searchname").autocomplete({
- source: "shopnamesearchautofill.php",
-
- minLength: 2,
- select: function(event, ui) {
- $('#searchid').val(ui.item.recid); <--- value of selected id is filled up
- },
-
- //html: true,
-
- open: function(event, ui) {
- $(".ui-autocomplete").css("z-index", 1000);
- }
- });
-
-
-
- });
- </script>
My problem is After this when I click
following script is NOT executed please help
- $('#showdetails').click(function() {
-
- var id = $('#searchid').val();
- alert(id);
- var url='shopdetail.php?id='+id;
- alert(url);
- window.location.replace(url);
- });
-
-