Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
    Posts
  • Brad Holland
    Participant
    Post count: 4

    Why not jsut use a bit of jQuery to modify the action attribute on the search form, like so?

    <script type=”text/javascript” >
    $( document ).ready(
    function() {
    var strAction = $(“#IDX-searchForm”).attr(“action”);
    console.log(strAction + “?idxID=b040&commingle” );
    $(“#IDX-searchForm”).attr(“action”, strAction + “?idxID=b040&commingle” );
    });
    </script>

    And it looks like IDX changes the default jQuery $ variable to ‘idx’, so if you don’t have jQuery loaded otherwise you might be able to write the code like this:

    <script type=”text/javascript” >
    idx( document ).ready(
    function() {
    var strAction = idx(“#IDX-searchForm”).attr(“action”);
    console.log(strAction + “?idxID=b040&commingle” );
    idx(“#IDX-searchForm”).attr(“action”, strAction + “?idxID=b040&commingle” );
    });
    </script>

    0 ratings, 0 votes0 ratings, 0 votes (0 rating, 0 votes, rated)
    You need to be a registered member to rate this post.
    Loading...
Viewing 1 post (of 1 total)