Commit 69118e51a9630a82e1f6807f4cc5173158f0e9d7
1 parent
92059f3e3d
Exists in
master
Creado plugin con opcion de mensaje
Showing
1 changed file
with
8 additions
and
0 deletions
Show diff stats
js/jquery.mutable.js
... | ... | @@ -31,6 +31,14 @@ |
31 | 31 | } |
32 | 32 | }); |
33 | 33 | |
34 | + | |
35 | + $("form").on("focusout", ".mutarselect-input",function( event ){ | |
36 | + $(this).prev(".mutarselect").prepend("<option selected=\"selected\" value='" + $(this).val() + "' class='mutarselect-rm'>" + $(this).val() + "</option>"); | |
37 | + $(this).prev(".mutarselect").show(); | |
38 | + $(this).remove(); | |
39 | + | |
40 | + }); | |
41 | + | |
34 | 42 | //return this; |
35 | 43 | |
36 | 44 | }; | ... | ... |