1.

Why javascript returning only first word of value in select

Answer»

Answer:

am STUCK over a small issue here.

I want to set the value of a input using JavaScript but jQuery is not displaying the FULL sentence.

var name = "Richard Keep";

But when I use try to do this

$('input#nameid').VAL(name)

to this input

the value is set to Richard alone instead of Richard Keep. How do I MAKE the jQuery echo the entire STRING and not just the first word in a string? Thanks



Discussion

No Comment Found