[Solved] Validation Form with PHP or Javascript [closed]

if the visitor fills out a field phone then allowed only enter numbers. and if the visitor fills out a field phone then allowed only enter email. Check this out function validateForm(){ var x = document.getElementById(‘name’); var email = document.getElementById(’email’); var num = document.getElementById(‘number’); var size = document.getElementById(‘size’); var filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/; var atpos=email.value.indexOf(“@”); var … Read more

[Solved] Text is failing to wrap [closed]

There’s this CSS rule being applied: .form-sub-label-container { white-space: nowrap; } To avoid that, either delete it (if you can), or overwrite it with the following rule in your custom CSS: .form-sub-label-container { white-space: normal; } 1 solved Text is failing to wrap [closed]

[Solved] Javascript code isn’t working. Does anyone know why?

<!DOCTYPE html> <html> <head> <title>form</title> </head> <body> <input id=”txtQuery” type=”text” /> <button id=”btnRequest”>Request</button> <pre id=”txtResponse”><pre> <script type=”text/javascript” src=”https://code.jquery.com/jquery-1.12.4.min.js”></script> <script> $(document).ready(function(){ $(“#btnRequest”).click(function(){ //Doing a JSON request to wikipedia api $.getJSON(“https://en.wikipedia.org/w/api.php?action=opensearch&format=jsonfm&search=”+ $(“#txtQuery”).val() + “&namespace=0&limit=10&redirects=resolve&format=json&callback=?”, function(data) { $(“#txtResponse”).html(JSON.stringify(data,null,4)); }); }); }); </script> </body> </html> 2 solved Javascript code isn’t working. Does anyone know why?

[Solved] My is bigger than my [closed]

Is this similar to what you are trying to accomplish? http://jsfiddle.net/ha7fK/1/ I changed the width to 300px for the demo at jsfiddle. Just change 300px to 900px HTML <body> <div class=”width900″> Width of 900px </div> <div class=”widthfull”> <div class=”text”> Width of 100% </div> </div> <div class=”width900″> Width of 900px </div> </body>​ CSS body {width:100%;} .width900 … Read more

[Solved] how to close the div in DOM JQuery [closed]

$(‘<li />’, {‘class’: ‘liBullet’}).append( $(‘<div />’, {‘class’: ‘layerCheck’}).append( $(‘<input />’, {id: layer.id, type: “checkbox”}) ) ).append( $(‘<label />’, {‘for’: layer.id, text: layer.name}) ).append( $(‘<div />’, {id: ‘legend’ + layer.id, ‘class’: ‘loadingLegend’}) ).appendTo(“#layer_list”); FIDDLE 1 solved how to close the div in DOM JQuery [closed]

[Solved] Regex for specific html tag in C# [duplicate]

instead of using a regex using something like an xml parser may be more useful to your situation. Load it up into an xml document and then use something like SelectNodes to get out your data you are looking for http://msdn.microsoft.com/en-us/library/4bektfx9.aspx 2 solved Regex for specific html tag in C# [duplicate]

[Solved] HTML textarea with HTML support? [closed]

Use Tinymce or ckeditor. http://ckeditor.com/ http://www.tinymce.com/ And there are many more wysiwyg editor available. http://phphtmledit.com/ Cute Editor for PHP http://nicedit.com/ do some Googling and you will find many more. Good Luck 1 solved HTML textarea with HTML support? [closed]

[Solved] how to add checkbox intems in to data base in one row [closed]

If you want it all stored in one record, first remove the for() loop. Then you have a couple options take your pick: $emode = mysql_real_escape_string(json_encode($mode)); $emode = mysql_real_escape_string(serialize($mode)); $emode = mysql_real_escape_string(implode(‘,’,$mode)); Then you just have decode on the way out. 3 solved how to add checkbox intems in to data base in one row … Read more

[Solved] Problem with JavaScript and adding a div to a grid at a specific (row, column) position [closed]

This is a very interesting problem. The problem, as you so rightly indicate, is in the JavaScript file. The first problem I can see is the way you are setting div.style.gridColumnStart in the initTile function (also known as method). grid.style.gridColumnStart is not a function, but a setting (also known as property), so you should just … Read more

[Solved] Slideshow in HTML5 [closed]

Php is a programming language not a database. You do not need a database for a slideshow, however you would use php to upload the images as well as list all the images in a directory. Once you accomplish that, you can pass the images to your slideshow. You can probably easily implement this script … Read more

[Solved] can’t customize drop down menu

<select class=”selectnav” id=”selectnav1″><option value=”http://dig.katherineblumkin.com/#about-kikori”>About Kikori</option><option value=”http://dig.katherineblumkin.com/#kumamoto”>- KUMAMOTO</option><option value=”http://dig.katherineblumkin.com/#earth”>- EARTH</option><option value=”http://dig.katherineblumkin.com/#water”>- WATER</option><option value=”http://dig.katherineblumkin.com/#time”>- TIME</option><option value=”http://dig.katherineblumkin.com/#the-woodsman”>- THE WOODSMAN</option><option value=”http://dig.katherineblumkin.com/store-locator/”>Where to buy</option><option value=”http://dig.katherineblumkin.com/news-reviews/” selected=””>News</option><option value=”http://dig.katherineblumkin.com/recipes/”>Recipes</option><option value=”http://dig.katherineblumkin.com/tag/kikori-whiskey-review/”>Reviews</option><option value=”http://dig.katherineblumkin.com/contact/”>Contact</option></select> enter image description here 0 solved can’t customize drop down menu

[Solved] Css position div under element [closed]

When you give an element absolute positioning, you are pulling it out of the document flow, so that it’s positioned relative to its first parent element that is not positioned with the static value (the default for positioning). What you need to do is have another element that is creating flow that allows you to … Read more