Adding the Jquery to Theme File. (2 posts)

  1. sirojan
    Posted 3 years ago #

    I am using locality Real Estate wordpress theme. I want to add jquery for Property Search Options.When I added the code here search options is working but site got some issues. Please take my site. Follwing Code I have used.

    [ Moderator Note: Please post code or markup snippets between backticks or use the code button. ]

    <script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.8.0.js">
    <script type="text/javascript">
    var maxprice = $('#select-maxprice').html();
    $('#select-minprice').change(function() {
    $('#select-maxprice option').each(function() {
      if (parseInt($(this).val()) <= parseInt($('#select-minprice').val())) $(this).remove();

    Can You please any One help me to Fix this Issue.??

  2. Give this a read about how to correctly enqueue up javascript.


Topic Closed

This topic has been closed to new replies.

About this Topic