এই কোডটির ২য় লাইনে index.html এর পরিবর্তে url ভেরিয়েবল পাস করাব কিভাবে?

<script>
        var url = $(location).attr('href');
        $( "#filter-active ul" ).load("index.html .hotels-filter li.active" );
</script>

asked 19 Aug '15, 15:48

mahbub's gravatar image

mahbub
9129

edited 19 Aug '15, 16:01


        var url = $(location).attr('href');
        $( "#filter-active ul" ).load(url + " .hotels-filter li.active" );
permanent link

answered 27 Aug '15, 22:48

moin1407's gravatar image

moin1407
211

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×11

question asked: 19 Aug '15, 15:48

question was seen: 777 times

last updated: 27 Aug '15, 22:48