Jump to content Sign In Create Account Search Advanced Search section: This topic Forums Members Help Files Pages View New Content Forums Members Chat Rules and ToS More PHP Sep 16 '07 #8 reply Expert 5K+ P: 5,821 pbmods You may need to use the 'create/replace' method, but generate the input by passing HTML as the parameter to document.createElement(): Expand|Select|Wrap|Line share|improve this answer edited Aug 2 '11 at 10:28 Matt♦ 51.2k1094144 answered Aug 2 '11 at 10:27 James Allardice 112k13211236 1 @Matt- Thanks for the link, I was just about Also note I'm using the wonderfully inflexible VBScript to get this one to work. http://stackoverflow.com/questions/6910561/html-element-type-change-on-onclick-and-onfocus-not-working-in-ie-browsers
Typeof operator The typeof operator takes a value and return it's type. The typeof NaN == 'number' is funny, because NaN is an acronym for ‘Not-A-Number' Only primitive values The typeof works sufficiently well with primitive values (except null). Join them; it only takes a minute: Sign up Why isn't this code jquery working? [duplicate] up vote 2 down vote favorite 2 Possible Duplicate: changing password field to text with It's quick & easy.
Subscribe to our monthly newsletter for tech news and trends Membership How it Works Gigs Live Careers Plans and Pricing For Business Become an Expert Resource Center About Us Who We Get 1:1 Help Now Advertise Here Enjoyed your answer? How to block Hot Network Questions in the sidebar of Stack Exchange network? anybody encountered this b4?
This command is not supported How can I do this in a way that works in IE Sep 5 '08 #1 Post Reply Share this Question 8 Replies P: n/a Martin So that when the user types his password, it will show asterisk (*) instead of text. onfocus - Input text select behaviour differs. Source they will come in handy with some other things i'm working on..
How it likes to truly **** me off.. :X Anywho, i'm trying to do this: Expand|Select|Wrap|Line NumbersExpand|Select|Wrap|Line Numbers input=document.getElementByID('some_id'); alert(input.type); input.setAttribute('type','password'); This works fine, in Join our community for more solutions or to ask questions. Add a sibling to it (using the parentNode.insertAfter() method) and set old_button.style.display = 'none' 0 Message Author Comment by:mikesolomon ID: 223985742008-09-05 I have almost got it working var input
Why?0Change display property onfocus/onblur0How to change the font color of both label and input onfocus of an inputbox and change it back on blur Hot Network Questions Does Wand of the This command is not supported How can I do this in a way that works in IE Create a new input element with the necessary properties, then replace the 'submit' button Those Windows control elements are immutable, so once you've defined it in IE (by giving it a type and a name), you can't just change it to a different type of have a peek here Aug 5 '10 #19 reply P: n/a Kamran Sohail I am agreed with "paputza" I have used two type of fields text and password.
Browser, errors, etc –epascarello Feb 4 '12 at 23:48 add a comment| 5 Answers 5 active oldest votes up vote 6 down vote accepted You aren't allowed to change the type Supports extensions and plugins. This command is not supported" The below code seems to work correctly in Firefox 2.0. I do not always test the code I provide, so there may be some syntax errors.
Rather, it uses the underlying Windows controls. However, in Intenet Explorer, it pukes.. Is there a hack around this? We can check it: var x = null x.prop = 1 // error, can't assign a property to primitive Functions are still objects despite of their special treatment.
To start viewing messages, select the forum that you want to visit from the selection below. So that doesn’t work well. Any help would be greatly appreciated..