enable or disable a form element using the
.prop()
method:
// Disable #div1
$( "#div1" ).prop( "disabled", true );
// Enable #div1
$( "#div").prop( "disabled", false );
29 Aug 2013
How do I disable/enable a form element?
How to Change colour on mouseover.
Hello.
The code to change colour (textbox,button,cell,tr etc). You can make a class in HTML design form and then call that function on code file.
Step 1:-
First of all make a css class as shown below:
The code to change colour (textbox,button,cell,tr etc). You can make a class in HTML design form and then call that function on code file.
Step 1:-
First of all make a css class as shown below:
<style type="text/css">
.normalRow
{
background-color:Red;
cursor:pointer;
.highlightRow
{
background-color:white;
cursor:pointer;
}
</style>
Step 2:-
Now call this css in code file like (this is for table row TR):
tr1.Attributes.Add("onmouseover", "this.className=('highlightRow');");
tr1.Attributes.Add("onmouseout", "this.className=('normalRow');");
Write a 'C' program to animate a circle?
The program in ‘C’ Programming language to draw a circle on
the screen and animate it is as follows:
#include <stdio.h>
#include <conio.h>
#include <graphics.h>
#include <dos.h>
#define RADIUS 50
#define DELAY 20
void main()
{
int x=0,
y=0, gdriver=DETECT, gmode=4;
clrscr();
initgraph(&gdriver,
&gmode, "C:\\TC\\BGI");
while(!kbhit())
{
for(x=0,
y=0; x<getmaxy() && !kbhit();)
{
circle(x++,
y++, RADIUS);
delay(DELAY);
cleardevice();
}
cleardevice();
}
getch();
closegraph();
Subscribe to:
Posts (Atom)
How to Create WEBSITE DESIGN
Way2finder Technologies is a web design studio that offers corporate web design and custom web design. Our website designers offer cheap w...
-
var name = 'india' ; alert ( name ); var name = $ ( "#txtname" ). val (); alert ( name );
-
protected void btnexport_Click(object sender, EventArgs e) { string attachment = "attachment; filename=RepurchaseR...
-
Hackers are gearing up for iPhone 5S release with a contest to crack the device's first-ever fingerprint scanner, a high-tech fea...