• Post Reply Bookmark Topic Watch Topic
  • New Topic

JavaScript element.value

 
chamini prashakthi
Ranch Hand
Posts: 106
3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have this code in my js

if i put inside this it always show underfine.
I have values in my database too.
how to get those values in a alert?
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65664
129
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I see nowhere in your code where you set a value on the element.
 
chamini prashakthi
Ranch Hand
Posts: 106
3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It automatically come with js.
no need to specify the value?
What did you mean?
If I put element2.value ="aaa" here all elements show aaa.
I want to see different values?
 
We find this kind of rampant individuality very disturbing. But not this tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!