I have a field that when populated it makes several triggers, beauty up there, it's okay with the code below.
$("#teste").change(function () {
var valor = $(this).val();
$("#nome").val(valor);
$("#idade").val(valor);
});
The problem is that my field comes with an example information, maicon/29
, name and age how do I get it in jQuery to get all the information up to the bar and also get all information after the bar, how do I do this? What if I have another bar, how to treat it?