jQuery – Checking/Unchecking Radio Buttons

 

I recently had the need to check a certain Radio Button in a Radio Button Group. What I found out was pretty cool. With jQuery you can select the Radio Button Group by name an then select a single Button by it’s value.

Let’s say you have a form containing something like following:



 

and you want to

Check a Single Radio Button in the Group

$(„input[name=radioButtons][value=’yep‘]“).prop(„checked“,true);

 

Uncheck all Radio Buttons in the Group

$(„input[name=radioButtons]“).removeAttr(„checked“);

 

Pretty easy, isn’t it?

How High Traffic Keywords can make your Adwords Campaign useless

Simple but useful Tip for your Adwords Campaign. When your Adword Campaign has a limited budget per time period you should not choose your keywords too universal for the topic you are targeting.

Let’s say you want to promote your business of Luxury Bus Services and your Budget is 10 Euros per Day. You want to attract Customers who are interested in luxurious bus travel. The wrong thing to do is to use Googles Keyword Tool and pick keywords that have a high search volume like „bus travel“ and „bus service“. These keywords will eat your budget with clicks from users who are likely not looking for a luxury service. That way your budget will be used for clicks not leading to a sale or at worst your budget limit will be reached and your ads won’t be shown anymore. So try to orientate on your topic. Use „luxury bus travel“ and „luxury bus service“ as your keywords and you will only attract (an pay for) clicks from people who are likely to book your services.

HowTo: Set up a Remote (S)FTP PHPStorm Project with BitBucket.org

The past few Days I have put all my Projects as a GIT-Repository to BitBucket.org for the obvious reason to have a Backup and easily Rollback changes if necessary.

What cost me a little effort was the process of getting my PHPStorm-Projects which are created from a remote (S)FTP Location into BitBucket so that I’m able to push and pull to/from the Repository and at the same time able to upload my changes via (S)FTP to the Webserver.

So if you might want to do the same this could be helpful.

I presume
…you have a BitBucket Account set up.
…you have PHPStorm installed
…you have GIT installed

1. Open PHPStorm and create a new project from a remote (S)FTP Location with the „New Project from existing Files…“ option

2.  Create a new GIT Repository in BitBucket

2. Open your Project in PHPStorm

3. Open the Menu ‚VCS‘ and choose ‚Enable Version Control Integration‘

4. Open the Git Bash  and do the following

cd /path/to/my/phpstorm/project
git remote add origin https://your-bitbucket-username:your-bitbucket-password@bitbucket.org/your-bitbucket-username/repositoryname-you-created-in-bitbucket.git
git add *
git commit

Enter a Description for the Submit and Save
(i.e. vi style save: i – Enter your Description – ESC – :wq – Enter)

git push -u origin --all

Your are done. Now you can use your Remote PHPStorm Project with a GIT BitBucket Repository.
Change a File and use ‚VCS -> Commit Changes‘ to commit and push your changes.