-
-
Save boniattirodrigo/2ec51b94dd3bce1dcd4d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$("#action-button").click(function() { | |
// supondo que voce tenha um <input id="pesquisar-nome"/> | |
var inputValue = $("#pesquisar-nome").val(); | |
$.ajax({ | |
url: "/search_view/?pesquisar-nome=" + encodeURIComponent(inputValue), | |
type: "get", | |
success: function(data) { | |
$('#results').html(data); | |
} | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment