javascript to jquery

Posted by Angeline Aarthi on Stack Overflow See other posts from Stack Overflow or by Angeline Aarthi
Published on 2009-05-21T06:28:12Z Indexed on 2010/04/23 2:03 UTC
Read the original article Hit count: 387

Filed under:
|

How do I write the following line which is in javascript in jQuery?

var variablename = new functionname('some variable');

This is my js code: var rt = new ResizeableTextbox('myRT');

I need to use this in the following code segment:

 if($(this).text() =='String')
 {
    $("<label id=labelstr"+stringinc+" >"+label+"</label>").appendTo(".menu li");            
    $("<input id=inputstr"+stringinc+" type= 'text' ></input>").appendTo(".menu li");              
    //in place of this I need that javascript code.
 }

How do I do that? The function Resizeable is defined in a separate js file. Please help me out.

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about JavaScript