Click here to Skip to main content
15,881,882 members
Home / Discussions / JavaScript
   

JavaScript

 
GeneralRe: Where is the data behind the page? Pin
DaveAuld23-Oct-11 8:31
professionalDaveAuld23-Oct-11 8:31 
GeneralRe: Where is the data behind the page? Pin
DaveAuld24-Oct-11 4:51
professionalDaveAuld24-Oct-11 4:51 
GeneralRe: Where is the data behind the page? Pin
LeonardoDaga31-Oct-11 0:36
LeonardoDaga31-Oct-11 0:36 
QuestionUncaught SyntaxError: Unexpected token ILLEGAL Pin
Vimalsoft(Pty) Ltd19-Oct-11 22:02
professionalVimalsoft(Pty) Ltd19-Oct-11 22:02 
AnswerRe: Uncaught SyntaxError: Unexpected token ILLEGAL Pin
Richard Andrew x6422-Oct-11 12:18
professionalRichard Andrew x6422-Oct-11 12:18 
GeneralRe: Uncaught SyntaxError: Unexpected token ILLEGAL Pin
Vimalsoft(Pty) Ltd23-Oct-11 1:44
professionalVimalsoft(Pty) Ltd23-Oct-11 1:44 
AnswerRe: Uncaught SyntaxError: Unexpected token ILLEGAL Pin
jsc4228-Oct-11 1:51
professionaljsc4228-Oct-11 1:51 
QuestionHow to select all the text in a Textbox in JQuery Pin
Vimalsoft(Pty) Ltd19-Oct-11 2:11
professionalVimalsoft(Pty) Ltd19-Oct-11 2:11 
Good Day All

i have a Jquery code defined like this



JavaScript
// Let's add it to textarea this time
 $(".cnt").focus(function()
 {
     // Check for the change
     if(this.value == this.defaultValue){
         this.select();
     }
 });


and i am creating a textbox on fly and after creating it i bind data to it and after that i want to attach a focus event if there a value "0" on it

VB
If cnt.Text = "0" Then
          cnt.CssClass = "cnt"
      End If



but still when i select a textbox that has "0" it does not select the whole content of the textbox. i went through a breakpoint and it goes through this line

VB
cnt.CssClass = "cnt"


Thanks
Vuyiswa Maseko,

Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.

C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa[at]dotnetfunda.com
http://www.Dotnetfunda.com

AnswerRe: How to select all the text in a Textbox in JQuery Pin
Manfred Rudolf Bihy19-Oct-11 2:50
professionalManfred Rudolf Bihy19-Oct-11 2:50 
AnswerRe: How to select all the text in a Textbox in JQuery Pin
Dennis E White19-Oct-11 7:07
professionalDennis E White19-Oct-11 7:07 
GeneralRe: How to select all the text in a Textbox in JQuery Pin
Vimalsoft(Pty) Ltd19-Oct-11 21:45
professionalVimalsoft(Pty) Ltd19-Oct-11 21:45 
Questionchanging size of web page Pin
Member 832305616-Oct-11 3:16
Member 832305616-Oct-11 3:16 
AnswerRe: changing size of web page Pin
AspDotNetDev16-Oct-11 10:18
protectorAspDotNetDev16-Oct-11 10:18 
AnswerRe: changing size of web page Pin
Dennis E White17-Oct-11 10:32
professionalDennis E White17-Oct-11 10:32 
GeneralRe: changing size of web page Pin
Member 832305618-Oct-11 4:40
Member 832305618-Oct-11 4:40 
GeneralRe: changing size of web page Pin
Dennis E White18-Oct-11 11:53
professionalDennis E White18-Oct-11 11:53 
GeneralRe: changing size of web page Pin
Member 832305619-Oct-11 0:50
Member 832305619-Oct-11 0:50 
GeneralRe: changing size of web page Pin
Dennis E White19-Oct-11 3:42
professionalDennis E White19-Oct-11 3:42 
AnswerRe: changing size of web page Pin
davidshenba17-Oct-11 23:50
davidshenba17-Oct-11 23:50 
AnswerRe: changing size of web page Pin
Morgs Morgan20-Oct-11 21:00
Morgs Morgan20-Oct-11 21:00 
QuestionDisplay Large Image in Small Space Pin
ASPnoob15-Oct-11 13:46
ASPnoob15-Oct-11 13:46 
AnswerRe: Display Large Image in Small Space Pin
AspDotNetDev15-Oct-11 19:54
protectorAspDotNetDev15-Oct-11 19:54 
GeneralRe: Display Large Image in Small Space Pin
ASPnoob15-Oct-11 20:29
ASPnoob15-Oct-11 20:29 
QuestionRead from excel and download new file using javascript Pin
Member 769859611-Oct-11 18:24
Member 769859611-Oct-11 18:24 
AnswerRe: Read from excel and download new file using javascript Pin
Dennis E White11-Oct-11 19:58
professionalDennis E White11-Oct-11 19:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.