JavaScript Editing using Pop-up modal

I've some problems with my Edit function for editing my groups table. the fields are "group_id(primary key), cat_id(foreign key), group_name" I used the group_id as the identifier of which group information I should edit

This is my Edit button

a target='_blank' href="#" data-toggle="modal" data-target="#myModal3" class="btnedit">Edit</a

When i clink the Edit Button, this modal will pop up

<div class="modal fade" id="myModal2" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"></div>

I added an hidden input type to hold the group_id

" id="editID">

I used this javascript to get the group_id value.

<script>

  $('.btnedit').click(function(){

    var url = '<?php echo DEFAULT_URL."group/edit_group/";?>';

    $.post(url,{'group_id':$('#editID').val()},function(res){

    if(res)

      {

      }

    });

  });

</script>

My question now is how will I apply the vallue that I got from my javascript into the modal to edit the details from the group_id that I seected?

Answer:1

I'm trying to use the jquery.data method to retrieve a bunch of item's IDs from a node server and save it for each item as an attr or data and use it later for updating the item. But the attribute ...

I'm trying to use the jquery.data method to retrieve a bunch of item's IDs from a node server and save it for each item as an attr or data and use it later for updating the item. But the attribute ...

  1. jquery data returning undefined
  2. jquery ajax return data
  3. jquery post not returning data
  4. jquery get not returning data
  5. jquery ajax not returning data
  6. jquery getjson not returning data

In Polymer 1.0+, how do you pass in a template from the light dom to be used in the dom-module? I'd like the template in the light dom to have bind variables, then the custom element use that template ...

In Polymer 1.0+, how do you pass in a template from the light dom to be used in the dom-module? I'd like the template in the light dom to have bind variables, then the custom element use that template ...

  1. polymer candy clay
  2. polymer cane
  3. polymer cane patterns
  4. polymer cane slicer
  5. polymer canes for sale
  6. polymer cane tutorial
  7. polymer candy clay liquid
  8. polymer candy clay amazon
  9. polymer candy clay for phone case
  10. polymer cane tutorials free
  11. polymer canada
  12. polymer canoe
  13. polymer cancer treatment
  14. polymer canada notes
  15. polymer canadian money
  16. polymer candy
  17. polymer canvas
  18. polymer cancer
  19. polymer cane extruder
  20. polymer candle filter

It is hard to explain, you can see a DEMO HERE I have a products table that dynamically creates/deletes new lines of products. I also have a totals table that totals up the totals of each line ...

It is hard to explain, you can see a DEMO HERE I have a products table that dynamically creates/deletes new lines of products. I also have a totals table that totals up the totals of each line ...

I have a button. onClick the button fires a JS function. In this function on the very first line of code I change the button's HTML using jQuery. Then the function takes a couple seconds. The button ...

I have a button. onClick the button fires a JS function. In this function on the very first line of code I change the button's HTML using jQuery. Then the function takes a couple seconds. The button ...

  1. canvas
  2. canada
  3. cancelled
  4. canceled vs cancelled
  5. canada goose
  6. cancun flights
  7. cane corso
  8. canes
  9. canadian prime minister
  10. canker sore
  11. candy
  12. cancer
  13. cancun
  14. canon
  15. canvas prints
  16. cancer sign
  17. candace owens
  18. canada news
  19. candytopia
  20. canlis