Before start reading this tutorial please undestand that this is on the
only way on doing it and of course not the best. I believe there are
hundred of developers in this forum and any better suggeston is welcome.
This is just a simple example in order to get the idea.
What we will try to do is...
In can be done without javascript but why to do it like that? I will post you a tutorial tonight. Just wait a couple of hours because I am a bit busy currently. And by the way I strongly suggest you to use a library for at least basic javascript operations like ajax,getting element values etc...
I'm trying to understand what you are trying to do. You need to select something from a drop down and then automatically fill five text boxes with the appropriate data from your database? If that's what you are trying to do I can help you. If not please try to explain!
Use javascript to dynamically change the style by adding an id to your td:
HTML:
<td id="test" style="background-color:#FFF000">test</td>
JAVASCRIPT:
document.getElementById("test").style.backgroundColor = "#FF1166";
Well it seems that you've found the solution by yourself but let me suggest you a very good library for handling advanced date validations/calulations etc...
date.js
just google it and you'll get the idea!
Brgds,
g.
Let me give you an idea:
<script type="text/javascript">
function ch(checked){
for (var i=1; i<=4; i++){
if (checked!=document.getElementById("c"+i).value){
document.getElementById("c"+i).style.visibility="hidden";
}
}
}
</script>
<input type="checkbox" id="c1" value="1"...
Good morning everyone. I'm new on this forum. I've started studying javascript/php/mysql by myself the last year and I need some guidance.
Here is the situation. I have designed a web application.The search panel contains 6 select elements which are dynamically generated by xhr. They are all in...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.