Quantcast
Channel: Mendix Forum Questions
Viewing all articles
Browse latest Browse all 83469

Changing the value of a textbox using JavaScript snippet

$
0
0
Hi All, I tried to change the value of a textbox on a button click using javascript snippet, I’m able to place the string in the text box, but not as a value. It is populating like a place holder, when i click the textbox it disappear.   code used:-     $(document).ready(function(){                         $(".ButtonClass").click(function(){                              var text= 'Name';                             $(".myclass :input").val(text);  //('myclass' textbox class name)                         });                         }); also tried :- $('.myclass').val(text);   (Not working) Please help me to do this. Thanks in Advance

Viewing all articles
Browse latest Browse all 83469

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>