Skip to content
Advertisement

Unable to get data attribute value in jquery using PHP

I am working with Jquery and php,I have text box and i am trying to pass “data attribute” (data-vals) value using jquery but i am getting “undefined” as response, Here is my code,Where i am wrong ?

JavaScript

Advertisement

Answer

Simply you can use on keypress with class postcmnt or with input

JavaScript
JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement