0
은 내가 이런 <div>
에 외부 페이지를로드하는 jQuery를 이벤트 있습니다 (즉,이로드)를 /pages/loadCoursePlan.php
에jQuery를 비동기로드 새로운 요소,로드 페이지에서 내 <code>default.php</code>에
$(".edit").click (function(){
var row_id = $(this).attr('id');
$("#studentCourseElementPlanselected").show().html("<div id='wait'></div>");
$.ajax({
url: "/pages/loadCoursePlan.php",
data: { 'cpl_id':row_id },
success: function(data){
$("#studentCourseElementPlanselected").html(data);
}
});
});
를 I
: 복제<select>
- 요소
$('#add_more').on('click', function() {
var selectClone = $('select:last').clone(true); // make a copy of select
$('#courseElements').append(selectClone); // append to clone select
});
을 추가 할 것입니다 그리고 내가 업데이 트를 클릭하면, 다른 jQuery를 스크립트는이 같은 무언가를 사람이라고 다른 jQuery를 스크립트를
<table id='myTable'>
<tr id='7'><td>Some info here</td><td>6 dagar</td> <td><a href='#' class='delete'><div id='remove_row'></div></a></td></tr>
<tr id='15'><td>Some other info here</td><td>10 dagar</td> <td><a href='#' class='delete'><div id='remove_row'></div></a></td></tr>
<tr id='16'><td>More info</td><td>10 dagar</td> <td><a href='#' class='delete'><div id='remove_row'></div></a></td></tr>
</table>
나는 새 행을 추가 할 할 생각이 같은
$('#course_update').click(function() {
var course_id = $('#course_id').val();
var plan_id = $('#plan_id').val();
var price_id = $('#price_id').val();
var course_name = $('#course_name').val();
var course_isActive = $('#course_isActive').val();
$('#update_status').html('<img src="../images/ajax-loader.gif" />');
$.post('../update.php', {
course_id: course_id,
plan_id: plan_id,
price_id: price_id,
course_name: course_name,
course_isActive: course_isActive
}, function(data) {
$('#update_status').html(data);
return false;
});
});
나는 /pages/loadCoursePlan.php
이 pages/loadCoursePlan.php
의 새로운 객체 (plan_id
)
HTML로 다시로드 할 것입니다 공정하고 단순한 ...