jQuery – Which button is selected
To retrieve the value of the selected button: $('input[name=radioName]:checked', '#myForm').val()
Il n'y a pas de questions bêtes
To retrieve the value of the selected button: $('input[name=radioName]:checked', '#myForm').val()
To make a curl request with authentication, just add the CURLOPT_USERPWD option $ch curl_init(); curl_setopt ($ch,CURLOPT_URL, url'); curl_setopt ($ch, CURLOPT_USERPWD, "user:pswd"); curl_setopt ($ch,CURLOPT_CONNECTTIMEOUT.5); curl_setopt ($ch,CURLOPT_RETURNTRANSFER,1); $buffer – curl_exec ($ch); curl_close ($ch); if (empty($buffer)) print "Need to recover from this! <>"; } Else print "There was data returned using curl. <>"; print "Buffer content -$buffer." <>"; … Read more
jQuery-File-Upload How to use the basic solution from http://blueimp.github.com/jQuery-File-Upload/ and make it work for all browsers (special dedication to Internet Explorer). The basic version has the advantage of not being overloaded with libraries and above all is much easier to import into an already-created website. Libraries Setting up To begin with, go to the address … Read more
When it is necessary to have a predefined order in a query, it is possible to change the order of the items by using a CASE in the ORDER BY. In this example id 12 must appear before id 2. Select FROM channel ORDER BY ( Box WHEN id – 1 THEN 1 WHEN id … Read more
In order for one CSS attribute to take precedence over another, for example when an item is defined by two classes, it is possible to use the !important option. For example: CSS: . style1 background-color: #38c8ff; } . style2 background-color: #ffffff!important; } The background will ultimately be white
To focus the first field on your page, just use: $(“input:text:visible:first”).focus();