Is there a way in java script to get only a particular name instead of using document.getElementsByName(\"x\"); which return an array? I have a kind of special
Or use jQuery, so you don't have to bother with all the browser annoyance.
You just have to do this:
$("*[name='x']").first();
To get the first element with that name. If you know the element type than you can use it instead of "*". jQuery will make your life easier every time!