diff --git a/convertir.php b/convertir.php
index 4f4e932..42441a2 100644
--- a/convertir.php
+++ b/convertir.php
@@ -1,12 +1,8 @@
Puesto:".$_POST['puesto'];
}
+
+
?>
\ No newline at end of file
diff --git a/index.html b/index.html
index 5e9cd37..3b58280 100644
--- a/index.html
+++ b/index.html
@@ -1,33 +1,35 @@
+
-
+
ajax
+
-
-
-
-
-
-
-
-
+
-
+
+
\ No newline at end of file
diff --git a/javascript.js b/javascript.js
index 6a03954..1dd59e6 100644
--- a/javascript.js
+++ b/javascript.js
@@ -1,13 +1,13 @@
$(document).ready(function () {
- $('#convertir').click(function (e) {
+ $('form').submit(function (e) {
e.preventDefault();
- let opracion=$('#opracion').val();
- let texto=$('#texto').val();
- $.get("http://localhost/ajax/convertir.php",
- {'operacion':opracion,'texto':texto},
- function(data){
- console.log(data);
- $('#listaEmpleados').html(data);
- });
+ let nombre=$('#nombre').val();
+ let puesto=$('#puesto').val();
+ $.post("http://localhost/ajax/convertir.php",
+ {'nombre':nombre,'puesto':puesto},
+ function (data, textStatus, jqXHR) {
+ $('#res').html(data);
+ }
+ );
});
});
\ No newline at end of file