Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <input class="searchType" type="checkbox" name="SharingNotification" id={{ taskExecution.id }}>
- <label class="searchtype2label">{{ taskExecution.id }}</label>
- </input>
- $('.searchType').click(function(event) {
- if(this.checked){
- $.ajax({
- type: "POST",
- url: '/app_dev.php/api/customer/customers',
- data: $(this).attr('id'),
- success: function(data) {
- alert('it worked');
- alert(data);
- $('#container').html(data);
- },
- error: function() {
- alert('it broke');
- },
- complete: function() {
- alert('it completed');
- }
- });
- }
- });
- request = {SymfonyComponentHttpFoundationParameterBag} [1]
- parameters = {array} [1]
- 1 = ""
- data: {id: $(this).attr('id')},
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement