Wednesday, November 26, 2014

Go Home gnrales Questions and Semantic Web beginners question and HTML, XHTML, ac HTML5 Mobile Web


5 Posts Hello, I have a question any beast: I am looking to fill a cell with the end of another cell. In First, I selects the city + dep. I want to fill with the 2nd dep. but I get nothing. I know nothing about javascript and I have trouble with the syntax ... est_ce qqun that can help me? thank you in advance. departementret2 function (value) {if (document.forms ["the_form"]. villeb.value! = "") {document.forms ["the_form"]. depret2.value = document.forms ["the_form"]. villeb. substring (0,2); }} Form: [code = php] <? "Reservation.php cat_chauff ac = 2" form name = "the_form" method = "post" action = onsubmit = "return validate ()"> <tr> <td> <div align = "right" class = "margin3"> <span class = "bodyText style7"> * </ span> <label for = "object"> City </ label> </ div> </ td> <td> < input type = "text" size = "30" maxlength = "30" name = "cpb" onkeyup = "completionVilleb (this.value);" /> </ Td> </ tr> <tr> <td> <select name = "villeb" id = "villeb"> <! - <Option ac value = ""> Choose </ option> -> </ select> </ td> ac <td> <input type = "text" size = "10" maxlength = "10" name = "depret2" id = "depret2" onkeyup = "departementret2 (this.value);" /> </ Td> </ tr>
891 Posts document.forms ac ["the_form"]. Villeb.value.substring (0.2) probably work since "forms [" the_form "]. Villeb" is an object, not a string (so .Substring could not s' apply). Your error console does not indicate you error? ac
Go Home gnrales Questions and Semantic Web beginners question and HTML, XHTML, ac HTML5 Mobile Web responsive web design and formatting CSS, CSS3, JavaScript, DOM and HTML5 API Web Accessibility Web Formats , encoding, internationalization, XML ct Web Development Server Reviews of your sites: Bar code and design forum
Alsacréations is a community dedicated to designing websites and web applications quality, thanks to the W3C standards, CSS stylesheets, HTML and JavaScript, and accessibility


No comments:

Post a Comment