jquery ui - I have one Textbox and inside the textbox i want the text which user cannot be deleted -


i have 1 text box in text inside text box should not deleted , after text cursor has placed

ex: textbox: "http://" should available , text in quotations cannot deleted inside textbox , cursor should after quotations.

thanks in advance, vara prasad.m

add input field:

onchange="testedit(this)" 

and have javascript function this:

function testedit(field) {   if (field.value.substring(0, 8) != "http://") {     field.value = "http://" + field.value.substring(8);   } } 

however, sloppy. best way put http:// in label outside text box. if in text box, should input. putting inside text box, confusing users.

good luck.


Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -