i am useing Javascript Function's for validation Its Working Fine But
If Condition Not Matches Its Not getting Focus On That Control. cursor Going To url ...is There Something with Post Back....Plz Reply
Thanks & regards
Kaustubh
kau14
0
Newbie Poster
Recommended Answers
Jump to Post<script language="javascript"> function setFocus() { var field = document.add_site.add_url; field.focus(); field.value = field.value; field.focus(); } </script>
call this javascript function after you submit
Jump to PostHuh? Your explanation makes no sense to me...
Jump to PostPlease explain what kau14 trying to ask?
Jump to PostWhatever the Id is of the control you want to set focus to, do the following....
document.getElementById('controlId').focus();
That's it!
All 16 Replies
rajarajan2017
BestJewSinceJC
700
Posting Maven
rajarajan2017
WebspoonUK
0
Seasoned Developer
kau14
0
Newbie Poster
rajarajan2017
kau14
0
Newbie Poster
rajarajan2017
rajarajan2017
kau14
0
Newbie Poster
rajarajan2017
kau14
0
Newbie Poster
rajarajan2017
kau14
0
Newbie Poster
rajarajan2017
WebspoonUK
0
Seasoned Developer
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.