why after add new input, class .numeric (normal number formatting) in js code not worked?
This way for normal number formatting is right?
What is your suggestion?
i not want use of plugin.
$("input:text.numeric").keyup(function () {
$val = $(this).val().match(/[0-9]/g).reverse().join("").match(/[0-9]{1,3}/g).join(",").match(/./g).reverse().join("");
$(this).val($val)
})
With respect
Use the
delegate()[docs] method to bind the handler to the.columncontainer.Example: http://jsfiddle.net/zgWr3/3/
This way, any
"input.numeric:text"elements inside of.columnwill invoke the handler irrespective of when they’re added to the DOM.I also changed the selector around a little. Seems more understandable to me.