Main

type

5 (blog/news article)

status

21 (imported old-v2, waiting for another import)

review version

0

cleanup version

0

pending deletion

0 (-)

created at

2025-11-26 14:04:22

updated at

2025-11-26 14:04:22

Address

url

https://www.actualidadjquery.es/2010/10/27/comprobar-el-valor-de-un-campo-select-y-modificarlo-en-jquery/

url length

105

url crc

37718

url crc32

819958614

location type

1 (url matches target location, page_location is empty)

canonical status

10 (verified canonical url)

canonical page id

3032773215

Source

domain id

34767374

domain tld

724

domain parts

0

originating warc id

-

originating url

https://data.commoncrawl.org/crawl-data/CC-MAIN-2025-33/segments/1754151279936.52/warc/CC-MAIN-20250807023708-20250807053708-00762.warc.gz

source type

11 (CommonCrawl)

Server response

server ip

91.146.97.110

Publication date

2025-08-07 03:30:07

Fetch attempts

0

Original html size

35423

Normalized and saved size

29242

Content

title

Comprobar el valor de un campo select y modificarlo en jQuery | Actualidad jQuery

excerpt

content


 Ayer os explicabamos como trabajar con los campos checkbox, validar su estado y cambiar su estado mediante jQuery. Hoy vamos a hacer lo mismo pero con un campo select. Hemos creado 4 botones, 1 botón para comprobar el estado del select, y los otros 3 botones para cambiar la opción seleccionada. Primero vamos a obtener la opción seleccionada del select, el id y el texto, presionando sobre el botón. $(document).ready(function(){ $("#select_comprobar").click(function() { alert("Id: "+$("#sexo option:selected").val()+" | Texto: "+$("#sexo option:selected").text()); }); }); Una vez que presionemos el botón recibiremos en un alert el id y el texto de la opción seleccionada, gracias al atributo option:selected ($("#sexo option:selected").val() / $("#sexo option:selected").text()) Para terminar vamos a cambiar la opción seleccionada del select con estos 3 botones: $(document).ready(function(){ $("#select_cambiar_defecto").click(function() { $("#sex...

author

updated

1767034942

Text analysis

block type

0

extracted fields

104

extracted bits

title
full content
content was extracted heuristically

detected location

0

detected language

8 (Spanish)

category id

Spanish articles (245)

index version

2025123101

paywall score

0

spam phrases

0

Text statistics

text nonlatin

0

text cyrillic

0

text characters

1305

text words

252

text unique words

87

text lines

1

text sentences

5

text paragraphs

1

text words per sentence

50

text matched phrases

0

text matched dictionaries

0