amigos me funciono de la siguiente manera
<!DOCTYPE html>
<html lang="en"><head>
<!--<meta charset="utf-8">-->
<meta charset="utf-8">
<title>Fenomenos Volcanicos</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<link href="css/bootstrap.css" rel="stylesheet">
<link href="css/bootstrap-editable.css" rel="stylesheet">
<script src="js/jquery-1.8.2.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/bootstrap-editable.min.js"></script>
Código Javascript
:
Ver original<script>
$(document).ready(function() {
$('.username').editable({
type: 'text',
//pk: 4,
name: 'usu_extension',
//value: '8000',
validate: function(value) {
if($.trim(value) == '')
return 'Este Campo es requerido';
},
url: 'multiples.php',
title: 'Ingrese el nuevo valor',
});
$.fn.editableform.buttons =
'<button type="submit" class="btn btn-success editable-submit btn-mini"><i class="icon-ok icon-white"></i></button>' +
'<button type="button" class="btn editable-cancel btn-mini"><i class="icon-remove"></i></button>';
});
</script>
Código HTML:
Ver original<div align="center"><a href="#" class="username" data-pk="<? echo $filas['item']?>">
<strong><? echo $filas['cantidad'] ?></strong></a></div>
y en multiples.php
Código PHP:
Ver original$usu_extension =$_REQUEST['value'];
$pk =$_REQUEST['pk'];
$consulta = $db->prepare("UPDATE inv_est_instaladas SET cantidad = '$usu_extension' WHERE item = $pk");
$consulta->execute();