Skip to content
  • home
  • portfolio
  • web design journal
  • blog
    • adventure
    • san diego
    • urbanity & architecture
    • projects
    • website design
Blog Web Dev Changing Values and Properties with jQuery

Changing Values and Properties with jQuery

By Forrest Smith - Drempd.com

jQuery excels at making it easy to change values and properties. Here are a few samples:

Change a Select Box Value

Changing which value is selected in a select box (this will select the item in the select box with the value of 126):

$('#catID').val('126');

Change the Background Color of a Textbox

$('#textbox').css({'background-color':'red'});

Checking a Checkbox

$('#txtSticky').attr('checked',true);
Posted on January 12, 2013August 26, 2022 in Web Dev
  • Adventure

    • adventure
    • gravelgrinding
    • hiking
    • running
  • The Built Environment

    • architecture
    • urbanity
  • Locations

    • san diego
    • portland
  • Freelance Life

    • freelancing
    • productivity
  • Web Dev

    • css
    • entrepreneurship
    • git
    • handlebars
    • html
    • inkscape
    • photoshop
    • php
    • sass
    • web design
    • web development
    • saphire

drempd | san diego, ca


home contact

adventures san diego urbanity and architecture projects stream website design

portfolio resume san diego web design freelance web designer

custom web design responsive web design website maintenance